var bc=e=>{throw TypeError(e)};var hl=(e,t,n)=>t.has(e)||bc("Cannot "+n);var P=(e,t,n)=>(hl(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?bc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(hl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),be=(e,t,n)=>(hl(e,t,"access private method"),n);var bi=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return P(e,t,r)}});function _g(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nf={exports:{}},Ls={},Af={exports:{}},Y={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fi=Symbol.for("react.element"),Lg=Symbol.for("react.portal"),zg=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),$g=Symbol.for("react.context"),Wg=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),Ec=Symbol.iterator;function Kg(e){return e===null||typeof e!="object"?null:(e=Ec&&e[Ec]||e["@@iterator"],typeof e=="function"?e:null)}var Mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Of=Object.assign,If={};function oo(e,t,n){this.props=e,this.context=t,this.refs=If,this.updater=n||Mf}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _f(){}_f.prototype=oo.prototype;function ou(e,t,n){this.props=e,this.context=t,this.refs=If,this.updater=n||Mf}var iu=ou.prototype=new _f;iu.constructor=ou;Of(iu,oo.prototype);iu.isPureReactComponent=!0;var kc=Array.isArray,Lf=Object.prototype.hasOwnProperty,su={current:null},zf={key:!0,ref:!0,__self:!0,__source:!0};function Df(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Lf.call(t,r)&&!zf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,D=T[H];if(0>>1;Ho(he,_))Teo(J,he)?(T[H]=J,T[Te]=_,H=Te):(T[H]=he,T[q]=_,H=q);else if(Teo(J,_))T[H]=J,T[Te]=_,H=Te;else break e}}return R}function o(T,R){var _=T.sortIndex-R.sortIndex;return _!==0?_:T.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,p=null,g=3,f=!1,C=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=T)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(T){if(v=!1,y(T),!C)if(n(a)!==null)C=!0,$(b);else{var R=n(u);R!==null&&U(S,R.startTime-T)}}function b(T,R){C=!1,v&&(v=!1,m(j),j=-1),f=!0;var _=g;try{for(y(R),p=n(a);p!==null&&(!(p.expirationTime>R)||T&&!B());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var D=H(p.expirationTime<=R);R=e.unstable_now(),typeof D=="function"?p.callback=D:p===n(a)&&r(a),y(R)}else r(a);p=n(a)}if(p!==null)var Q=!0;else{var q=n(u);q!==null&&U(S,q.startTime-R),Q=!1}return Q}finally{p=null,g=_,f=!1}}var E=!1,k=null,j=-1,I=5,M=-1;function B(){return!(e.unstable_now()-MT||125H?(T.sortIndex=_,t(u,T),n(a)===null&&T===n(u)&&(v?(m(j),j=-1):v=!0,U(S,_-H))):(T.sortIndex=D,t(a,T),C||f||(C=!0,$(b))),T},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(T){var R=g;return function(){var _=g;g=R;try{return T.apply(this,arguments)}finally{g=_}}}})(Hf);Uf.exports=Hf;var ry=Uf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var oy=x,Xe=ry;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yl=Object.prototype.hasOwnProperty,iy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tc={},jc={};function sy(e){return Yl.call(jc,e)?!0:Yl.call(Tc,e)?!1:iy.test(e)?jc[e]=!0:(Tc[e]=!0,!1)}function ly(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ay(e,t,n,r){if(t===null||typeof t>"u"||ly(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var au=/[\-:]([a-z])/g;function uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(au,uu);Pe[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(au,uu);Pe[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(au,uu);Pe[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function cu(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function uy(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sr:return"Fragment";case wr:return"Portal";case Gl:return"Profiler";case du:return"StrictMode";case ql:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qf:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pu:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function cy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(t);case 8:return t===du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dy(e){var t=Gf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){e._valueTracker||(e._valueTracker=dy(e))}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ls(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xf(e,t){t=t.checked,t!=null&&cu(e,"checked",t,!1)}function ea(e,t){Xf(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&ta(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ta(e,t,n){(t!=="number"||ls(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Po=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var No={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fy=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){fy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var py=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oa(e,t){if(t){if(py[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function ia(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sa=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,Or=null,Ir=null;function Ic(e){if(e=mi(e)){if(typeof la!="function")throw Error(N(280));var t=e.stateNode;t&&(t=$s(t),la(e.stateNode,e.type,t))}}function rp(e){Or?Ir?Ir.push(e):Ir=[e]:Or=e}function op(){if(Or){var e=Or,t=Ir;if(Ir=Or=null,Ic(e),t)for(e=0;e>>=0,e===0?32:31-(Ey(e)/ky|0)|0}var ji=64,Ri=4194304;function To(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=To(l):(i&=s,i!==0&&(r=To(i)))}else s=n&~o,s!==0?r=To(s):i!==0&&(r=To(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function Ry(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Mo),Uc=" ",Hc=!1;function Ep(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cr=!1;function iv(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:(Hc=!0,Uc);case"textInput":return e=t.data,e===Uc&&Hc?null:e;default:return null}}function sv(e,t){if(Cr)return e==="compositionend"||!Cu&&Ep(e,t)?(e=Cp(),Gi=xu=Sn=null,Cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yc(n)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Np(){for(var e=window,t=ls();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ls(e.document)}return t}function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mv(e){var t=Np(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rp(n.ownerDocument.documentElement,n)){if(r!==null&&bu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Gc(n,i);var s=Gc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,br=null,pa=null,Io=null,ha=!1;function qc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ha||br==null||br!==ls(r)||(r=br,"selectionStart"in r&&bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Io&&Qo(Io,r)||(Io=r,r=hs(pa,"onSelect"),0Pr||(e.current=wa[Pr],wa[Pr]=null,Pr--)}function ne(e,t){Pr++,wa[Pr]=e.current,e.current=t}var On={},Me=Fn(On),$e=Fn(!1),or=On;function qr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function We(e){return e=e.childContextTypes,e!=null}function gs(){ie($e),ie(Me)}function rd(e,t,n){if(Me.current!==On)throw Error(N(168));ne(Me,t),ne($e,n)}function Fp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,cy(e)||"Unknown",o));return ce({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,or=Me.current,ne(Me,e),ne($e,$e.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Fp(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,ie($e),ie(Me),ne(Me,e)):ie($e),ne($e,n)}var Wt=null,Ws=!1,Ml=!1;function Bp(e){Wt===null?Wt=[e]:Wt.push(e)}function Tv(e){Ws=!0,Bp(e)}function Bn(){if(!Ml&&Wt!==null){Ml=!0;var e=0,t=ee;try{var n=Wt;for(ee=1;e>=s,o-=s,Ht=1<<32-vt(t)+o|n<j?(I=k,k=null):I=k.sibling;var M=g(m,k,y[j],S);if(M===null){k===null&&(k=I);break}e&&k&&M.alternate===null&&t(m,k),h=i(M,h,j),E===null?b=M:E.sibling=M,E=M,k=I}if(j===y.length)return n(m,k),le&&Hn(m,j),b;if(k===null){for(;jj?(I=k,k=null):I=k.sibling;var B=g(m,k,M.value,S);if(B===null){k===null&&(k=I);break}e&&k&&B.alternate===null&&t(m,k),h=i(B,h,j),E===null?b=B:E.sibling=B,E=B,k=I}if(M.done)return n(m,k),le&&Hn(m,j),b;if(k===null){for(;!M.done;j++,M=y.next())M=p(m,M.value,S),M!==null&&(h=i(M,h,j),E===null?b=M:E.sibling=M,E=M);return le&&Hn(m,j),b}for(k=r(m,k);!M.done;j++,M=y.next())M=f(k,m,j,M.value,S),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?j:M.key),h=i(M,h,j),E===null?b=M:E.sibling=M,E=M);return e&&k.forEach(function(z){return t(m,z)}),le&&Hn(m,j),b}function w(m,h,y,S){if(typeof y=="object"&&y!==null&&y.type===Sr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var b=y.key,E=h;E!==null;){if(E.key===b){if(b=y.type,b===Sr){if(E.tag===7){n(m,E.sibling),h=o(E,y.props.children),h.return=m,m=h;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===dn&&ld(b)===E.type){n(m,E.sibling),h=o(E,y.props),h.ref=wo(m,E,y),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}y.type===Sr?(h=nr(y.props.children,m.mode,S,y.key),h.return=m,m=h):(S=rs(y.type,y.key,y.props,null,m.mode,S),S.ref=wo(m,h,y),S.return=m,m=S)}return s(m);case wr:e:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=o(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Bl(y,m.mode,S),h.return=m,m=h}return s(m);case dn:return E=y._init,w(m,h,E(y._payload),S)}if(Po(y))return C(m,h,y,S);if(mo(y))return v(m,h,y,S);Li(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,y),h.return=m,m=h):(n(m,h),h=Fl(y,m.mode,S),h.return=m,m=h),s(m)):n(m,h)}return w}var Zr=Hp(!0),Vp=Hp(!1),ws=Fn(null),Ss=null,Rr=null,Tu=null;function ju(){Tu=Rr=Ss=null}function Ru(e){var t=ws.current;ie(ws),e._currentValue=t}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){Ss=e,Tu=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Tu!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(Ss===null)throw Error(N(308));Rr=e,Ss.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var Qn=null;function Nu(e){Qn===null?Qn=[e]:Qn.push(e)}function Kp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gt(e,r)}function Gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fn=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gt(e,n)}return o=r.interleaved,o===null?(t.next=t,Nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gt(e,n)}function Xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}function ad(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cs(e,t,n,r){var o=e.updateQueue;fn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;s=0,d=u=a=null,l=i;do{var g=l.lane,f=l.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var C=e,v=l;switch(g=t,f=n,v.tag){case 1:if(C=v.payload,typeof C=="function"){p=C.call(f,p,g);break e}p=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=v.payload,g=typeof C=="function"?C.call(f,p,g):C,g==null)break e;p=ce({},p,g);break e;case 2:fn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else f={eventTime:f,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,a=p):d=d.next=f,s|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);lr|=s,e.lanes=s,e.memoizedState=p}}function ud(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),t()}finally{ee=n,Il.transition=r}}function ch(){return lt().memoizedState}function Av(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dh(e))fh(t,n);else if(n=Kp(e,t,n,r),n!==null){var o=_e();xt(n,e,r,o),ph(n,t,r)}}function Mv(e,t,n){var r=Nn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dh(e))fh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,wt(l,s)){var a=t.interleaved;a===null?(o.next=o,Nu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Kp(e,t,o,r),n!==null&&(o=_e(),xt(n,e,r,o),ph(n,t,r))}}function dh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function fh(e,t){_o=Es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}var ks={readContext:st,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},Ov={readContext:st,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ji(4194308,4,ih.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ji(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Av.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:cd,useDebugValue:Fu,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=cd(!1),t=e[0];return e=Nv.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=jt();if(le){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ce===null)throw Error(N(349));sr&30||Xp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,dd(Jp.bind(null,r,i,e),[e]),r.flags|=2048,ti(9,Zp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Ce.identifierPrefix;if(le){var n=Vt,r=Ht;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mt]=t,e[qo]=r,bh(e,t,!1,!1),t.stateNode=e;e:{switch(s=ia(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oto&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304)}else{if(!r)if(e=bs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Re(t),null}else 2*pe()-i.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return Vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function $v(e,t){switch(ku(t),t.tag){case 1:return We(t.type)&&gs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),ie($e),ie(Me),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ou(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Jr(),null;case 10:return Ru(t.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var Di=!1,Ae=!1,Wv=typeof WeakSet=="function"?WeakSet:Set,L=null;function Nr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Ma(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Cd=!1;function Uv(e,t){if(ma=fs,e=Np(),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(l=s+o),p!==i||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=s),g===i&&++d===r&&(a=s),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ga={focusedElem:e,selectionRange:n},fs=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var v=C.memoizedProps,w=C.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:pt(t.type,v),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){fe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return C=Cd,Cd=!1,C}function Lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ma(t,n,i)}o=o.next}while(o!==r)}}function Vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[qo],delete t[xa],delete t[kv],delete t[Pv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ms));else if(r!==4&&(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}function _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}var Ee=null,gt=!1;function ln(e,t,n){for(n=n.child;n!==null;)jh(e,t,n),n=n.sibling}function jh(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(zs,n)}catch{}switch(n.tag){case 5:Ae||Nr(n,t);case 6:var r=Ee,o=gt;Ee=null,ln(e,t,n),Ee=r,gt=o,Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),Vo(e)):Al(Ee,n.stateNode));break;case 4:r=Ee,o=gt,Ee=n.stateNode.containerInfo,gt=!0,ln(e,t,n),Ee=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ma(n,t,s),o=o.next}while(o!==r)}ln(e,t,n);break;case 1:if(!Ae&&(Nr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,ln(e,t,n),Ae=r):ln(e,t,n);break;default:ln(e,t,n)}}function Ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wv),t.forEach(function(r){var o=Zv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vv(r/1960))-r,10e?16:e,Cn===null)var r=!1;else{if(e=Cn,Cn=null,js=0,Z&6)throw Error(N(331));var o=Z;for(Z|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Uu?tr(e,0):Wu|=n),Ue(e,t)}function Lh(e,t){t===0&&(e.mode&1?(t=Ri,Ri<<=1,!(Ri&130023424)&&(Ri=4194304)):t=1);var n=_e();e=Gt(e,t),e!==null&&(pi(e,t,n),Ue(e,n))}function Xv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lh(e,n)}function Zv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Lh(e,n)}var zh;zh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Fv(e,t,n);Be=!!(e.flags&131072)}else Be=!1,le&&t.flags&1048576&&$p(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;es(e,t),e=t.pendingProps;var o=qr(t,Me.current);Lr(t,n),o=Lu(null,t,r,e,o,n);var i=zu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(i=!0,ys(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Au(t),o.updater=Hs,t.stateNode=o,o._reactInternals=t,ka(t,r,e,n),t=ja(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Eu(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(es(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=e0(r),e=pt(r,e),o){case 0:t=Ta(null,t,r,e,n);break e;case 1:t=xd(null,t,r,e,n);break e;case 11:t=yd(null,t,r,e,n);break e;case 14:t=vd(null,t,r,pt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ta(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),xd(e,t,r,o,n);case 3:e:{if(wh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Qp(e,t),Cs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=eo(Error(N(423)),t),t=wd(e,t,r,n,o);break e}else if(r!==o){o=eo(Error(N(424)),t),t=wd(e,t,r,n,o);break e}else for(Ye=Tn(t.stateNode.containerInfo.firstChild),Ge=t,le=!0,yt=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===o){t=qt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Yp(t),e===null&&Ca(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ya(r,o)?s=null:i!==null&&ya(r,i)&&(t.flags|=32),xh(e,t),Oe(e,t,s,n),t.child;case 6:return e===null&&Ca(t),null;case 13:return Sh(e,t,n);case 4:return Mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),yd(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(ws,r._currentValue),r._currentValue=s,i!==null)if(wt(i.value,s)){if(i.children===o.children&&!$e.current){t=qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ba(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ba(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lr(t,n),o=st(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=pt(r,t.pendingProps),o=pt(r.type,o),vd(e,t,r,o,n);case 15:return yh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),es(e,t),t.tag=1,We(r)?(e=!0,ys(t)):e=!1,Lr(t,n),hh(t,r,o),ka(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return Ch(e,t,n);case 22:return vh(e,t,n)}throw Error(N(156,t.tag))};function Dh(e,t){return dp(e,t)}function Jv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,t,n,r){return new Jv(e,t,n,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e0(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fu)return 11;if(e===pu)return 14}return 2}function An(e,t){var n=e.alternate;return n===null?(n=ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Qu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Sr:return nr(n.children,o,i,t);case du:s=8,o|=8;break;case Gl:return e=ot(12,n,t,o|2),e.elementType=Gl,e.lanes=i,e;case ql:return e=ot(13,n,t,o),e.elementType=ql,e.lanes=i,e;case Xl:return e=ot(19,n,t,o),e.elementType=Xl,e.lanes=i,e;case Yf:return Qs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:s=10;break e;case Qf:s=9;break e;case fu:s=11;break e;case pu:s=14;break e;case dn:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function nr(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Qs(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Yf,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,o,i,s,l,a){return e=new t0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Au(i),e}function n0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wh)}catch(e){console.error(e)}}Wh(),Wf.exports=Ze;var yi=Wf.exports;const Uh=Rf(yi);var Hh,Md=yi;Hh=Md.createRoot,Md.hydrateRoot;const l0=1,a0=1e6;let $l=0;function u0(){return $l=($l+1)%Number.MAX_SAFE_INTEGER,$l.toString()}const Wl=new Map,Od=e=>{if(Wl.has(e))return;const t=setTimeout(()=>{Wl.delete(e),Fo({type:"REMOVE_TOAST",toastId:e})},a0);Wl.set(e,t)},c0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,l0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Od(n):e.toasts.forEach(r=>{Od(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},os=[];let is={toasts:[]};function Fo(e){is=c0(is,e),os.forEach(t=>{t(is)})}function d0({...e}){const t=u0(),n=o=>Fo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Fo({type:"DISMISS_TOAST",toastId:t});return Fo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function f0(){const[e,t]=x.useState(is);return x.useEffect(()=>(os.push(t),()=>{const n=os.indexOf(t);n>-1&&os.splice(n,1)}),[e]),{...e,toast:d0,dismiss:n=>Fo({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Id(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...C}=p,v=((m=g==null?void 0:g[e])==null?void 0:m[a])||l,w=x.useMemo(()=>C,Object.values(C));return c.jsx(v.Provider,{value:w,children:f})};u.displayName=i+"Provider";function d(p,g){var v;const f=((v=g==null?void 0:g[e])==null?void 0:v[a])||l,C=x.useContext(f);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,p0(o,...t)]}function p0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(i)[`__scope${u}`];return{...l,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ba(e){const t=h0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(g0);if(a){const u=a.props.children,d=l.map(p=>p===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function h0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=v0(o),l=y0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?Vh(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Kh=Symbol("radix.slottable");function m0(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Kh,t}function g0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kh}function y0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function v0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function x0(e){const t=e+"CollectionProvider",[n,r]=Zs(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:w,children:m}=v,h=A.useRef(null),y=A.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:y,collectionRef:h,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=Ba(l),u=A.forwardRef((v,w)=>{const{scope:m,children:h}=v,y=i(l,m),S=St(w,y.collectionRef);return c.jsx(a,{ref:S,children:h})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ba(d),f=A.forwardRef((v,w)=>{const{scope:m,children:h,...y}=v,S=A.useRef(null),b=St(w,S),E=i(d,m);return A.useEffect(()=>(E.itemMap.set(S,{ref:S,...y}),()=>void E.itemMap.delete(S))),c.jsx(g,{[p]:"",ref:b,children:h})});f.displayName=d;function C(v){const w=i(e+"CollectionConsumer",v);return A.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const y=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((E,k)=>y.indexOf(E.ref.current)-y.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},C,r]}var w0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=w0.reduce((e,t)=>{const n=Ba(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qh(e,t){e&&yi.flushSync(()=>e.dispatchEvent(t))}function In(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function S0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var C0="DismissableLayer",$a="dismissableLayer.update",b0="dismissableLayer.pointerDownOutside",E0="dismissableLayer.focusOutside",_d,Yh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(Yh),[d,p]=x.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),C=St(t,k=>p(k)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(w),h=d?v.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=m,b=P0(k=>{const j=k.target,I=[...u.branches].some(M=>M.contains(j));!S||I||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},g),E=T0(k=>{const j=k.target;[...u.branches].some(M=>M.contains(j))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},g);return S0(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},g),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_d=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ld(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=_d)}},[d,g,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ld())},[d,u]),x.useEffect(()=>{const k=()=>f({});return document.addEventListener($a,k),()=>document.removeEventListener($a,k)},[]),c.jsx(He.div,{...a,ref:C,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,b.onPointerDownCapture)})});Zu.displayName=C0;var k0="DismissableLayerBranch",Gh=x.forwardRef((e,t)=>{const n=x.useContext(Yh),r=x.useRef(null),o=St(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(He.div,{...e,ref:o})});Gh.displayName=k0;function P0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){qh(b0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function T0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&qh(E0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ld(){const e=new CustomEvent($a);document.dispatchEvent(e)}function qh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qh(o,i):o.dispatchEvent(i)}var j0=Zu,R0=Gh,_n=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},N0="Portal",Xh=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);_n(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Uh.createPortal(c.jsx(He.div,{...r,ref:t}),s):null});Xh.displayName=N0;function A0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Ju=e=>{const{present:t,children:n}=e,r=M0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=St(r.ref,O0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};Ju.displayName="Presence";function M0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=A0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=$i(r.current);i.current=l==="mounted"?u:"none"},[l]),_n(()=>{const u=r.current,d=o.current;if(d!==e){const g=i.current,f=$i(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_n(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const v=$i(r.current).includes(f.animationName);if(f.target===t&&v&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=f=>{f.target===t&&(i.current=$i(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function $i(e){return(e==null?void 0:e.animationName)||"none"}function O0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var I0=Bf[" useInsertionEffect ".trim().toString()]||_n;function _0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=L0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=x.useCallback(d=>{var p;if(l){const g=z0(d)?d(e):d;g!==e&&((p=s.current)==null||p.call(s,g))}else i(d)},[l,e,i,s]);return[a,u]}function L0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return I0(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function z0(e){return typeof e=="function"}var D0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),F0="VisuallyHidden",Js=x.forwardRef((e,t)=>c.jsx(He.span,{...e,ref:t,style:{...D0,...e.style}}));Js.displayName=F0;var B0=Js,ec="ToastProvider",[tc,$0,W0]=x0("Toast"),[Zh,rC]=Zs("Toast",[W0]),[U0,el]=Zh(ec),Jh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,d]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ec}\`. Expected non-empty \`string\`.`),c.jsx(tc.Provider,{scope:t,children:c.jsx(U0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:s})})};Jh.displayName=ec;var em="ToastViewport",H0=["F8"],Wa="toast.viewportPause",Ua="toast.viewportResume",tm=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=H0,label:o="Notifications ({hotkey})",...i}=e,s=el(em,n),l=$0(n),a=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),g=St(t,p,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=s.toastCount>0;x.useEffect(()=>{const w=m=>{var y;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((y=p.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,m=p.current;if(C&&w&&m){const h=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent(Wa);m.dispatchEvent(E),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Ua);m.dispatchEvent(E),s.isClosePausedRef.current=!1}},S=E=>{!w.contains(E.relatedTarget)&&y()},b=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",h),w.addEventListener("focusout",S),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",b),window.addEventListener("blur",h),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",b),window.removeEventListener("blur",h),window.removeEventListener("focus",y)}}},[C,s.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:w})=>{const h=l().map(y=>{const S=y.ref.current,b=[S,...rx(S)];return w==="forwards"?b:b.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return x.useEffect(()=>{const w=p.current;if(w){const m=h=>{var b,E,k;const y=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!y){const j=document.activeElement,I=h.shiftKey;if(h.target===w&&I){(b=u.current)==null||b.focus();return}const z=v({tabbingDirection:I?"backwards":"forwards"}),K=z.findIndex(O=>O===j);Ul(z.slice(K+1))?h.preventDefault():I?(E=u.current)==null||E.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,v]),c.jsxs(R0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&c.jsx(Ha,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});Ul(w)}}),c.jsx(tc.Slot,{scope:n,children:c.jsx(He.ol,{tabIndex:-1,...i,ref:g})}),C&&c.jsx(Ha,{ref:d,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});Ul(w)}})]})});tm.displayName=em;var nm="ToastFocusProxy",Ha=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=el(nm,n);return c.jsx(Js,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ha.displayName=nm;var vi="Toast",V0="toast.swipeStart",K0="toast.swipeMove",Q0="toast.swipeCancel",Y0="toast.swipeEnd",rm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=_0({prop:r,defaultProp:o??!0,onChange:i,caller:vi});return c.jsx(Ju,{present:n||l,children:c.jsx(X0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:In(e.onPause),onResume:In(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});rm.displayName=vi;var[G0,q0]=Zh(vi,{onClose(){}}),X0=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...C}=e,v=el(vi,n),[w,m]=x.useState(null),h=St(t,O=>m(O)),y=x.useRef(null),S=x.useRef(null),b=o||v.duration,E=x.useRef(0),k=x.useRef(b),j=x.useRef(0),{onToastAdd:I,onToastRemove:M}=v,B=In(()=>{var G;(w==null?void 0:w.contains(document.activeElement))&&((G=v.viewport)==null||G.focus()),s()}),z=x.useCallback(O=>{!O||O===1/0||(window.clearTimeout(j.current),E.current=new Date().getTime(),j.current=window.setTimeout(B,O))},[B]);x.useEffect(()=>{const O=v.viewport;if(O){const G=()=>{z(k.current),u==null||u()},$=()=>{const U=new Date().getTime()-E.current;k.current=k.current-U,window.clearTimeout(j.current),a==null||a()};return O.addEventListener(Wa,$),O.addEventListener(Ua,G),()=>{O.removeEventListener(Wa,$),O.removeEventListener(Ua,G)}}},[v.viewport,b,a,u,z]),x.useEffect(()=>{i&&!v.isClosePausedRef.current&&z(b)},[i,b,v.isClosePausedRef,z]),x.useEffect(()=>(I(),()=>M()),[I,M]);const K=x.useMemo(()=>w?cm(w):null,[w]);return v.viewport?c.jsxs(c.Fragment,{children:[K&&c.jsx(Z0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),c.jsx(G0,{scope:n,onClose:B,children:yi.createPortal(c.jsx(tc.ItemSlot,{scope:n,children:c.jsx(j0,{asChild:!0,onEscapeKeyDown:ye(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||B(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...C,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:ye(e.onPointerDown,O=>{O.button===0&&(y.current={x:O.clientX,y:O.clientY})}),onPointerMove:ye(e.onPointerMove,O=>{if(!y.current)return;const G=O.clientX-y.current.x,$=O.clientY-y.current.y,U=!!S.current,T=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,_=T?R(0,G):0,H=T?0:R(0,$),D=O.pointerType==="touch"?10:2,Q={x:_,y:H},q={originalEvent:O,delta:Q};U?(S.current=Q,Wi(K0,p,q,{discrete:!1})):zd(Q,v.swipeDirection,D)?(S.current=Q,Wi(V0,d,q,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(G)>D||Math.abs($)>D)&&(y.current=null)}),onPointerUp:ye(e.onPointerUp,O=>{const G=S.current,$=O.target;if($.hasPointerCapture(O.pointerId)&&$.releasePointerCapture(O.pointerId),S.current=null,y.current=null,G){const U=O.currentTarget,T={originalEvent:O,delta:G};zd(G,v.swipeDirection,v.swipeThreshold)?Wi(Y0,f,T,{discrete:!0}):Wi(Q0,g,T,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Z0=e=>{const{__scopeToast:t,children:n,...r}=e,o=el(vi,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return tx(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.jsx(Xh,{asChild:!0,children:c.jsx(Js,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},J0="ToastTitle",om=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});om.displayName=J0;var ex="ToastDescription",im=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});im.displayName=ex;var sm="ToastAction",lm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(um,{altText:n,asChild:!0,children:c.jsx(nc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sm}\`. Expected non-empty \`string\`.`),null)});lm.displayName=sm;var am="ToastClose",nc=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=q0(am,n);return c.jsx(um,{asChild:!0,children:c.jsx(He.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});nc.displayName=am;var um=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),nx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cm(r))}}),t}function Wi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qh(o,i):o.dispatchEvent(i)}var zd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function tx(e=()=>{}){const t=In(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function nx(e){return e.nodeType===e.ELEMENT_NODE}function rx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ul(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ox=Jh,dm=tm,fm=rm,pm=om,hm=im,mm=lm,gm=nc;function ym(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Fd=vm,ix=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Fd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const g=Dd(d)||Dd(p);return o[u][g]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(C=>{let[v,w]=C;return Array.isArray(w)?w.includes({...i,...l}[v]):{...i,...l}[v]===w})?[...u,p,g]:u},[]);return Fd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var lx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ax=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...lx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xm("lucide",o),...l},[...s.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Et=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(ax,{ref:i,iconNode:t,className:xm(`lucide-${sx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ux=Et("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=Et("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=Et("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fx=Et("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=Et("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=Et("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mx=Et("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=Et("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bd=Et("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yx=Et("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wm=Et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rc="-",vx=e=>{const t=wx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(rc);return l[0]===""&&l.length!==1&&l.shift(),Sm(l,t)||xx(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Sm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Sm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(rc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},$d=/^\[(.+)\]$/,xx=e=>{if($d.test(e)){const t=$d.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Cx(Object.entries(e.classGroups),n).forEach(([i,s])=>{Va(s,r,i,t)}),r},Va=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Wd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Sx(o)){Va(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Va(s,Wd(t,i),n,r)})})},Wd=(e,t)=>{let n=e;return t.split(rc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Sx=e=>e.isThemeGetter,Cx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,bx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Cm="!",Ex=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:C,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},kx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Px=e=>({cache:bx(e.cacheSize),parseClassName:Ex(e),...vx(e)}),Tx=/\s+/,jx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Tx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let C=!!f,v=r(C?g.substring(0,f):g);if(!v){if(!C){l=u+(l.length>0?" "+l:l);continue}if(v=r(g),!v){l=u+(l.length>0?" "+l:l);continue}C=!1}const w=kx(d).join(":"),m=p?w+Cm:w,h=m+v;if(i.includes(h))continue;i.push(h);const y=o(v,C);for(let S=0;S0?" "+l:l)}return l};function Rx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=Px(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=jx(a,n);return o(a,d),d}return function(){return i(Rx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Em=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ax=/^\d+\/\d+$/,Mx=new Set(["px","full","screen"]),Ox=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ix=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_x=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ft=e=>Dr(e)||Mx.has(e)||Ax.test(e),an=e=>lo(e,"length",Vx),Dr=e=>!!e&&!Number.isNaN(Number(e)),Hl=e=>lo(e,"number",Dr),bo=e=>!!e&&Number.isInteger(Number(e)),Dx=e=>e.endsWith("%")&&Dr(e.slice(0,-1)),V=e=>Em.test(e),un=e=>Ox.test(e),Fx=new Set(["length","size","percentage"]),Bx=e=>lo(e,Fx,km),$x=e=>lo(e,"position",km),Wx=new Set(["image","url"]),Ux=e=>lo(e,Wx,Qx),Hx=e=>lo(e,"",Kx),Eo=()=>!0,lo=(e,t,n)=>{const r=Em.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Vx=e=>Ix.test(e)&&!_x.test(e),km=()=>!1,Kx=e=>Lx.test(e),Qx=e=>zx.test(e),Yx=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),g=re("gap"),f=re("gradientColorStops"),C=re("gradientColorStopPositions"),v=re("inset"),w=re("margin"),m=re("opacity"),h=re("padding"),y=re("saturate"),S=re("scale"),b=re("sepia"),E=re("skew"),k=re("space"),j=re("translate"),I=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",V,t],z=()=>[V,t],K=()=>["",Ft,an],O=()=>["auto",Dr,V],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",V],_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Dr,V];return{cacheSize:500,separator:":",theme:{colors:[Eo],spacing:[Ft,an],blur:["none","",un,V],brightness:H(),borderColor:[e],borderRadius:["none","","full",un,V],borderSpacing:z(),borderWidth:K(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[Dx,an],inset:B(),margin:B(),opacity:H(),padding:z(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[un]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),V]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo,V]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",bo,V]}],"grid-cols":[{"grid-cols":[Eo]}],"col-start-end":[{col:["auto",{span:["full",bo,V]},V]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Eo]}],"row-start-end":[{row:["auto",{span:[bo,V]},V]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[un]},un]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",un,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hl]}],"font-family":[{font:[Eo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",Dr,Hl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ft,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ft,an]}],"underline-offset":[{"underline-offset":["auto",Ft,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),$x]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ux]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Ft,V]}],"outline-w":[{outline:[Ft,an]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ft,an]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",un,Hx]}],"shadow-color":[{shadow:[Eo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",un,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[bo,V]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ft,an,Hl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Gx=Nx(Yx);function fr(...e){return Gx(vm(e))}const qx=ox,Pm=x.forwardRef(({className:e,...t},n)=>c.jsx(dm,{ref:n,className:fr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Pm.displayName=dm.displayName;const Xx=ix("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Tm=x.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(fm,{ref:r,className:fr(Xx({variant:t}),e),...n}));Tm.displayName=fm.displayName;const Zx=x.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:fr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Zx.displayName=mm.displayName;const jm=x.forwardRef(({className:e,...t},n)=>c.jsx(gm,{ref:n,className:fr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(wm,{className:"h-4 w-4"})}));jm.displayName=gm.displayName;const Rm=x.forwardRef(({className:e,...t},n)=>c.jsx(pm,{ref:n,className:fr("text-sm font-semibold",e),...t}));Rm.displayName=pm.displayName;const Nm=x.forwardRef(({className:e,...t},n)=>c.jsx(hm,{ref:n,className:fr("text-sm opacity-90",e),...t}));Nm.displayName=hm.displayName;function Jx(){const{toasts:e}=f0();return c.jsxs(qx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return c.jsxs(Tm,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Rm,{children:n}),r&&c.jsx(Nm,{children:r})]}),o,c.jsx(jm,{})]},t)}),c.jsx(Pm,{})]})}var Ud=["light","dark"],e1="(prefers-color-scheme: dark)",t1=x.createContext(void 0),n1={setTheme:e=>{},themes:[]},r1=()=>{var e;return(e=x.useContext(t1))!=null?e:n1};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Ud.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(C,v=!1,w=!0)=>{let m=s?s[C]:C,h=v?C+"|| ''":`'${m}'`,y="";return o&&w&&!v&&Ud.includes(C)&&(y+=`d.style.colorScheme = '${C}';`),n==="class"?v||m?y+=`c.add(${h})`:y+="null":m&&(y+=`d[s](n,${h})`),y},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${e1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}${u?"":"else{"+g(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}else{${g(i,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})});var o1=e=>{switch(e){case"success":return l1;case"info":return u1;case"warning":return a1;case"error":return c1;default:return null}},i1=Array(12).fill(0),s1=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},i1.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),l1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d1=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),f1=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ka=1,p1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ka++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],A.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(m1(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ka++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},De=new p1,h1=(e,t)=>{let n=(t==null?void 0:t.id)||Ka++;return De.addToast({title:e,...t,id:n}),n},m1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",g1=h1,y1=()=>De.toasts,v1=()=>De.getActiveToasts();Object.assign(g1,{success:De.success,info:De.info,warning:De.warning,error:De.error,custom:De.custom,message:De.message,promise:De.promise,dismiss:De.dismiss,loading:De.loading},{getHistory:y1,getToasts:v1});function x1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}x1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Ui(e){return e.label!==void 0}var w1=3,S1="32px",C1="16px",Hd=4e3,b1=356,E1=14,k1=20,P1=200;function ft(...e){return e.filter(Boolean).join(" ")}function T1(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var j1=e=>{var t,n,r,o,i,s,l,a,u,d,p;let{invert:g,toast:f,unstyled:C,interacting:v,setHeights:w,visibleToasts:m,heights:h,index:y,toasts:S,expanded:b,removeToast:E,defaultRichColors:k,closeButton:j,style:I,cancelButtonStyle:M,actionButtonStyle:B,className:z="",descriptionClassName:K="",duration:O,position:G,gap:$,loadingIcon:U,expandByDefault:T,classNames:R,icons:_,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:D}=e,[Q,q]=A.useState(null),[he,Te]=A.useState(null),[J,pr]=A.useState(!1),[en,$n]=A.useState(!1),[tn,hr]=A.useState(!1),[nn,wi]=A.useState(!1),[cl,Si]=A.useState(!1),[dl,po]=A.useState(0),[mr,yc]=A.useState(0),ho=A.useRef(f.duration||O||Hd),vc=A.useRef(null),Wn=A.useRef(null),Pg=y===0,Tg=y+1<=m,et=f.type,gr=f.dismissible!==!1,jg=f.className||"",Rg=f.descriptionClassName||"",Ci=A.useMemo(()=>h.findIndex(W=>W.toastId===f.id)||0,[h,f.id]),Ng=A.useMemo(()=>{var W;return(W=f.closeButton)!=null?W:j},[f.closeButton,j]),xc=A.useMemo(()=>f.duration||O||Hd,[f.duration,O]),fl=A.useRef(0),yr=A.useRef(0),wc=A.useRef(0),vr=A.useRef(null),[Ag,Mg]=G.split("-"),Sc=A.useMemo(()=>h.reduce((W,te,se)=>se>=Ci?W:W+te.height,0),[h,Ci]),Cc=f1(),Og=f.invert||g,pl=et==="loading";yr.current=A.useMemo(()=>Ci*$+Sc,[Ci,Sc]),A.useEffect(()=>{ho.current=xc},[xc]),A.useEffect(()=>{pr(!0)},[]),A.useEffect(()=>{let W=Wn.current;if(W){let te=W.getBoundingClientRect().height;return yc(te),w(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>w(se=>se.filter(at=>at.toastId!==f.id))}},[w,f.id]),A.useLayoutEffect(()=>{if(!J)return;let W=Wn.current,te=W.style.height;W.style.height="auto";let se=W.getBoundingClientRect().height;W.style.height=te,yc(se),w(at=>at.find(ut=>ut.toastId===f.id)?at.map(ut=>ut.toastId===f.id?{...ut,height:se}:ut):[{toastId:f.id,height:se,position:f.position},...at])},[J,f.title,f.description,w,f.id]);let rn=A.useCallback(()=>{$n(!0),po(yr.current),w(W=>W.filter(te=>te.toastId!==f.id)),setTimeout(()=>{E(f)},P1)},[f,E,w,yr]);A.useEffect(()=>{if(f.promise&&et==="loading"||f.duration===1/0||f.type==="loading")return;let W;return b||v||D&&Cc?(()=>{if(wc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),rn()},ho.current)),()=>clearTimeout(W)},[b,v,f,et,D,Cc,rn]),A.useEffect(()=>{f.delete&&rn()},[rn,f.delete]);function Ig(){var W,te,se;return _!=null&&_.loading?A.createElement("div",{className:ft(R==null?void 0:R.loader,(W=f==null?void 0:f.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":et==="loading"},_.loading):U?A.createElement("div",{className:ft(R==null?void 0:R.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":et==="loading"},U):A.createElement(s1,{className:ft(R==null?void 0:R.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:et==="loading"})}return A.createElement("li",{tabIndex:0,ref:Wn,className:ft(z,jg,R==null?void 0:R.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[et],(n=f==null?void 0:f.classNames)==null?void 0:n[et]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||C),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":cl,"data-removed":en,"data-visible":Tg,"data-y-position":Ag,"data-x-position":Mg,"data-index":y,"data-front":Pg,"data-swiping":tn,"data-dismissible":gr,"data-type":et,"data-invert":Og,"data-swipe-out":nn,"data-swipe-direction":he,"data-expanded":!!(b||T&&J),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${en?dl:yr.current}px`,"--initial-height":T?"auto":`${mr}px`,...I,...f.style},onDragEnd:()=>{hr(!1),q(null),vr.current=null},onPointerDown:W=>{pl||!gr||(vc.current=new Date,po(yr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(hr(!0),vr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,te,se,at;if(nn||!gr)return;vr.current=null;let ut=Number(((W=Wn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),on=Number(((te=Wn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Un=new Date().getTime()-((se=vc.current)==null?void 0:se.getTime()),ct=Q==="x"?ut:on,sn=Math.abs(ct)/Un;if(Math.abs(ct)>=k1||sn>.11){po(yr.current),(at=f.onDismiss)==null||at.call(f,f),Te(Q==="x"?ut>0?"right":"left":on>0?"down":"up"),rn(),wi(!0),Si(!1);return}hr(!1),q(null)},onPointerMove:W=>{var te,se,at,ut;if(!vr.current||!gr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let on=W.clientY-vr.current.y,Un=W.clientX-vr.current.x,ct=(se=e.swipeDirections)!=null?se:T1(G);!Q&&(Math.abs(Un)>1||Math.abs(on)>1)&&q(Math.abs(Un)>Math.abs(on)?"x":"y");let sn={x:0,y:0};Q==="y"?(ct.includes("top")||ct.includes("bottom"))&&(ct.includes("top")&&on<0||ct.includes("bottom")&&on>0)&&(sn.y=on):Q==="x"&&(ct.includes("left")||ct.includes("right"))&&(ct.includes("left")&&Un<0||ct.includes("right")&&Un>0)&&(sn.x=Un),(Math.abs(sn.x)>0||Math.abs(sn.y)>0)&&Si(!0),(at=Wn.current)==null||at.style.setProperty("--swipe-amount-x",`${sn.x}px`),(ut=Wn.current)==null||ut.style.setProperty("--swipe-amount-y",`${sn.y}px`)}},Ng&&!f.jsx?A.createElement("button",{"aria-label":H,"data-disabled":pl,"data-close-button":!0,onClick:pl||!gr?()=>{}:()=>{var W;rn(),(W=f.onDismiss)==null||W.call(f,f)},className:ft(R==null?void 0:R.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=_==null?void 0:_.close)!=null?i:d1):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,et||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:ft(R==null?void 0:R.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ig():null,f.type!=="loading"?f.icon||(_==null?void 0:_[et])||o1(et):null):null,A.createElement("div",{"data-content":"",className:ft(R==null?void 0:R.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},A.createElement("div",{"data-title":"",className:ft(R==null?void 0:R.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:ft(K,Rg,R==null?void 0:R.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Ui(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:W=>{var te,se;Ui(f.cancel)&&gr&&((se=(te=f.cancel).onClick)==null||se.call(te,W),rn())},className:ft(R==null?void 0:R.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Ui(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:W=>{var te,se;Ui(f.action)&&((se=(te=f.action).onClick)==null||se.call(te,W),!W.defaultPrevented&&rn())},className:ft(R==null?void 0:R.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Vd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function R1(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?C1:S1;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var N1=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:C=w1,toastOptions:v,dir:w=Vd(),gap:m=E1,loadingIcon:h,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:b}=e,[E,k]=A.useState([]),j=A.useMemo(()=>Array.from(new Set([r].concat(E.filter(D=>D.position).map(D=>D.position)))),[E,r]),[I,M]=A.useState([]),[B,z]=A.useState(!1),[K,O]=A.useState(!1),[G,$]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=A.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=A.useRef(null),_=A.useRef(!1),H=A.useCallback(D=>{k(Q=>{var q;return(q=Q.find(he=>he.id===D.id))!=null&&q.delete||De.dismiss(D.id),Q.filter(({id:he})=>he!==D.id)})},[]);return A.useEffect(()=>De.subscribe(D=>{if(D.dismiss){k(Q=>Q.map(q=>q.id===D.id?{...q,delete:!0}:q));return}setTimeout(()=>{Uh.flushSync(()=>{k(Q=>{let q=Q.findIndex(he=>he.id===D.id);return q!==-1?[...Q.slice(0,q),{...Q[q],...D},...Q.slice(q+1)]:[D,...Q]})})})}),[]),A.useEffect(()=>{if(d!=="system"){$(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:Q})=>{$(Q?"dark":"light")})}catch{D.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(he){console.error(he)}})}},[d]),A.useEffect(()=>{E.length<=1&&z(!1)},[E]),A.useEffect(()=>{let D=Q=>{var q,he;o.every(Te=>Q[Te]||Q.code===Te)&&(z(!0),(q=U.current)==null||q.focus()),Q.code==="Escape"&&(document.activeElement===U.current||(he=U.current)!=null&&he.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[o]),A.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,_.current=!1)}},[U.current]),A.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((D,Q)=>{var q;let[he,Te]=D.split("-");return E.length?A.createElement("ol",{key:D,dir:w==="auto"?Vd():w,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":he,"data-lifted":B&&E.length>1&&!i,"data-x-position":Te,style:{"--front-toast-height":`${((q=I[0])==null?void 0:q.height)||0}px`,"--width":`${b1}px`,"--gap":`${m}px`,...f,...R1(a,u)},onBlur:J=>{_.current&&!J.currentTarget.contains(J.relatedTarget)&&(_.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||_.current||(_.current=!0,R.current=J.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{K||z(!1)},onDragEnd:()=>z(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},E.filter(J=>!J.position&&Q===0||J.position===D).map((J,pr)=>{var en,$n;return A.createElement(j1,{key:J.id,icons:y,index:pr,toast:J,defaultRichColors:p,duration:(en=v==null?void 0:v.duration)!=null?en:g,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:C,closeButton:($n=v==null?void 0:v.closeButton)!=null?$n:s,interacting:K,position:D,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:H,toasts:E.filter(tn=>tn.position==J.position),heights:I.filter(tn=>tn.position==J.position),setHeights:M,expandByDefault:i,gap:m,loadingIcon:h,expanded:B,pauseWhenPageIsHidden:b,swipeDirections:e.swipeDirections})})):null}))});const A1=({...e})=>{const{theme:t="system"}=r1();return c.jsx(N1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},M1=["top","right","bottom","left"],Ln=Math.min,Qe=Math.max,As=Math.round,Hi=Math.floor,Lt=e=>({x:e,y:e}),O1={left:"right",right:"left",bottom:"top",top:"bottom"},I1={start:"end",end:"start"};function Qa(e,t,n){return Qe(e,Ln(t,n))}function Xt(e,t){return typeof e=="function"?e(t):e}function Zt(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function oc(e){return e==="x"?"y":"x"}function ic(e){return e==="y"?"height":"width"}const _1=new Set(["top","bottom"]);function Ot(e){return _1.has(Zt(e))?"y":"x"}function sc(e){return oc(Ot(e))}function L1(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=sc(e),i=ic(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ms(s)),[s,Ms(s)]}function z1(e){const t=Ms(e);return[Ya(e),t,Ya(t)]}function Ya(e){return e.replace(/start|end/g,t=>I1[t])}const Kd=["left","right"],Qd=["right","left"],D1=["top","bottom"],F1=["bottom","top"];function B1(e,t,n){switch(e){case"top":case"bottom":return n?t?Qd:Kd:t?Kd:Qd;case"left":case"right":return t?D1:F1;default:return[]}}function $1(e,t,n,r){const o=ao(e);let i=B1(Zt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ya)))),i}function Ms(e){return e.replace(/left|right|bottom|top/g,t=>O1[t])}function W1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Am(e){return typeof e!="number"?W1(e):{top:e,right:e,bottom:e,left:e}}function Os(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Yd(e,t,n){let{reference:r,floating:o}=e;const i=Ot(t),s=sc(t),l=ic(s),a=Zt(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(ao(t)){case"start":f[s]-=g*(n&&u?-1:1);break;case"end":f[s]+=g*(n&&u?-1:1);break}return f}const U1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Yd(u,r,a),g=r,f={},C=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=Xt(e,t)||{};if(u==null)return{};const p=Am(d),g={x:n,y:r},f=sc(o),C=ic(f),v=await s.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",y=w?"clientHeight":"clientWidth",S=i.reference[C]+i.reference[f]-g[f]-i.floating[C],b=g[f]-i.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=E?E[y]:0;(!k||!await(s.isElement==null?void 0:s.isElement(E)))&&(k=l.floating[y]||i.floating[C]);const j=S/2-b/2,I=k/2-v[C]/2-1,M=Ln(p[m],I),B=Ln(p[h],I),z=M,K=k-v[C]-B,O=k/2-v[C]/2+j,G=Qa(z,O,K),$=!a.arrow&&ao(o)!=null&&O!==G&&i.reference[C]/2-(OO<=0)){var B,z;const O=(((B=i.flip)==null?void 0:B.index)||0)+1,G=k[O];if(G&&(!(p==="alignment"?h!==Ot(G):!1)||M.every(T=>T.overflows[0]>0&&Ot(T.placement)===h)))return{data:{index:O,overflows:M},reset:{placement:G}};let $=(z=M.filter(U=>U.overflows[0]<=0).sort((U,T)=>U.overflows[1]-T.overflows[1])[0])==null?void 0:z.placement;if(!$)switch(f){case"bestFit":{var K;const U=(K=M.filter(T=>{if(E){const R=Ot(T.placement);return R===h||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,_)=>R+_,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:K[0];U&&($=U);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Gd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qd(e){return M1.some(t=>e[t]>=0)}const K1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const i=await ri(t,{...o,elementContext:"reference"}),s=Gd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qd(s)}}}case"escaped":{const i=await ri(t,{...o,altBoundary:!0}),s=Gd(i,n.floating);return{data:{escapedOffsets:s,escaped:qd(s)}}}default:return{}}}}},Mm=new Set(["left","top"]);async function Q1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Zt(n),l=ao(n),a=Ot(n)==="y",u=Mm.has(s)?-1:1,d=i&&a?-1:1,p=Xt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:C}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof C=="number"&&(f=l==="end"?C*-1:C),a?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const Y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Q1(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},G1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...a}=Xt(e,t),u={x:n,y:r},d=await ri(t,a),p=Ot(Zt(o)),g=oc(p);let f=u[g],C=u[p];if(i){const w=g==="y"?"top":"left",m=g==="y"?"bottom":"right",h=f+d[w],y=f-d[m];f=Qa(h,f,y)}if(s){const w=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=C+d[w],y=C-d[m];C=Qa(h,C,y)}const v=l.fn({...t,[g]:f,[p]:C});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[p]:s}}}}}},q1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Xt(e,t),d={x:n,y:r},p=Ot(o),g=oc(p);let f=d[g],C=d[p];const v=Xt(l,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const y=g==="y"?"height":"width",S=i.reference[g]-i.floating[y]+w.mainAxis,b=i.reference[g]+i.reference[y]-w.mainAxis;fb&&(f=b)}if(u){var m,h;const y=g==="y"?"width":"height",S=Mm.has(Zt(o)),b=i.reference[p]-i.floating[y]+(S&&((m=s.offset)==null?void 0:m[p])||0)+(S?0:w.crossAxis),E=i.reference[p]+i.reference[y]+(S?0:((h=s.offset)==null?void 0:h[p])||0)-(S?w.crossAxis:0);CE&&(C=E)}return{[g]:f,[p]:C}}}},X1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Xt(e,t),d=await ri(t,u),p=Zt(o),g=ao(o),f=Ot(o)==="y",{width:C,height:v}=i.floating;let w,m;p==="top"||p==="bottom"?(w=p,m=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=p,w=g==="end"?"top":"bottom");const h=v-d.top-d.bottom,y=C-d.left-d.right,S=Ln(v-d[w],h),b=Ln(C-d[m],y),E=!t.middlewareData.shift;let k=S,j=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),E&&!g){const M=Qe(d.left,0),B=Qe(d.right,0),z=Qe(d.top,0),K=Qe(d.bottom,0);f?j=C-2*(M!==0||B!==0?M+B:Qe(d.left,d.right)):k=v-2*(z!==0||K!==0?z+K:Qe(d.top,d.bottom))}await a({...t,availableWidth:j,availableHeight:k});const I=await s.getDimensions(l.floating);return C!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function uo(e){return Om(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dt(e){var t;return(t=(Om(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Om(e){return tl()?e instanceof Node||e instanceof qe(e).Node:!1}function Ct(e){return tl()?e instanceof Element||e instanceof qe(e).Element:!1}function zt(e){return tl()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Xd(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const Z1=new Set(["inline","contents"]);function xi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Z1.has(o)}const J1=new Set(["table","td","th"]);function ew(e){return J1.has(uo(e))}const tw=[":popover-open",":modal"];function nl(e){return tw.some(t=>{try{return e.matches(t)}catch{return!1}})}const nw=["transform","translate","scale","rotate","perspective"],rw=["transform","translate","scale","rotate","perspective","filter"],ow=["paint","layout","strict","content"];function lc(e){const t=ac(),n=Ct(e)?bt(e):e;return nw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rw.some(r=>(n.willChange||"").includes(r))||ow.some(r=>(n.contain||"").includes(r))}function iw(e){let t=zn(e);for(;zt(t)&&!no(t);){if(lc(t))return t;if(nl(t))return null;t=zn(t)}return null}function ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sw=new Set(["html","body","#document"]);function no(e){return sw.has(uo(e))}function bt(e){return qe(e).getComputedStyle(e)}function rl(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zn(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||Dt(e);return Xd(t)?t.host:t}function Im(e){const t=zn(e);return no(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&xi(t)?t:Im(t)}function oi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Im(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=qe(o);if(i){const l=Ga(s);return t.concat(s,s.visualViewport||[],xi(o)?o:[],l&&n?oi(l):[])}return t.concat(o,oi(o,[],n))}function Ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _m(e){const t=bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=As(n)!==i||As(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function uc(e){return Ct(e)?e:e.contextElement}function Fr(e){const t=uc(e);if(!zt(t))return Lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_m(t);let s=(i?As(n.width):n.width)/r,l=(i?As(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const lw=Lt(0);function Lm(e){const t=qe(e);return!ac()||!t.visualViewport?lw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function ur(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=uc(e);let s=Lt(1);t&&(r?Ct(r)&&(s=Fr(r)):s=Fr(e));const l=aw(i,n,r)?Lm(i):Lt(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const g=qe(i),f=r&&Ct(r)?qe(r):r;let C=g,v=Ga(C);for(;v&&r&&f!==C;){const w=Fr(v),m=v.getBoundingClientRect(),h=bt(v),y=m.left+(v.clientLeft+parseFloat(h.paddingLeft))*w.x,S=m.top+(v.clientTop+parseFloat(h.paddingTop))*w.y;a*=w.x,u*=w.y,d*=w.x,p*=w.y,a+=y,u+=S,C=qe(v),v=Ga(C)}}return Os({width:d,height:p,x:a,y:u})}function cc(e,t){const n=rl(e).scrollLeft;return t?t.left+n:ur(Dt(e)).left+n}function zm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function uw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Dt(r),l=t?nl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Lt(1);const d=Lt(0),p=zt(r);if((p||!p&&!i)&&((uo(r)!=="body"||xi(s))&&(a=rl(r)),zt(r))){const f=ur(r);u=Fr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=s&&!p&&!i?zm(s,a,!0):Lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-a.scrollTop*u.y+d.y+g.y}}function cw(e){return Array.from(e.getClientRects())}function dw(e){const t=Dt(e),n=rl(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+cc(e);const l=-n.scrollTop;return bt(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function fw(e,t){const n=qe(e),r=Dt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=ac();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const pw=new Set(["absolute","fixed"]);function hw(e,t){const n=ur(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zt(e)?Fr(e):Lt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Zd(e,t,n){let r;if(t==="viewport")r=fw(e,n);else if(t==="document")r=dw(Dt(e));else if(Ct(t))r=hw(t,n);else{const o=Lm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Os(r)}function Dm(e,t){const n=zn(e);return n===t||!Ct(n)||no(n)?!1:bt(n).position==="fixed"||Dm(n,t)}function mw(e,t){const n=t.get(e);if(n)return n;let r=oi(e,[],!1).filter(l=>Ct(l)&&uo(l)!=="body"),o=null;const i=bt(e).position==="fixed";let s=i?zn(e):e;for(;Ct(s)&&!no(s);){const l=bt(s),a=lc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&pw.has(o.position)||xi(s)&&!a&&Dm(e,s))?r=r.filter(d=>d!==s):o=l,s=zn(s)}return t.set(e,r),r}function gw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?nl(t)?[]:mw(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const p=Zd(t,d,o);return u.top=Qe(p.top,u.top),u.right=Ln(p.right,u.right),u.bottom=Ln(p.bottom,u.bottom),u.left=Qe(p.left,u.left),u},Zd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function yw(e){const{width:t,height:n}=_m(e);return{width:t,height:n}}function vw(e,t,n){const r=zt(t),o=Dt(t),i=n==="fixed",s=ur(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Lt(0);function u(){a.x=cc(o)}if(r||!r&&!i)if((uo(t)!=="body"||xi(o))&&(l=rl(t)),r){const f=ur(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?zm(o,l):Lt(0),p=s.left+l.scrollLeft-a.x-d.x,g=s.top+l.scrollTop-a.y-d.y;return{x:p,y:g,width:s.width,height:s.height}}function Vl(e){return bt(e).position==="static"}function Jd(e,t){if(!zt(e)||bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Dt(e)===n&&(n=n.ownerDocument.body),n}function Fm(e,t){const n=qe(e);if(nl(e))return n;if(!zt(e)){let o=zn(e);for(;o&&!no(o);){if(Ct(o)&&!Vl(o))return o;o=zn(o)}return n}let r=Jd(e,t);for(;r&&ew(r)&&Vl(r);)r=Jd(r,t);return r&&no(r)&&Vl(r)&&!lc(r)?n:r||iw(e)||n}const xw=async function(e){const t=this.getOffsetParent||Fm,n=this.getDimensions,r=await n(e.floating);return{reference:vw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ww(e){return bt(e).direction==="rtl"}const Sw={convertOffsetParentRelativeRectToViewportRelativeRect:uw,getDocumentElement:Dt,getClippingRect:gw,getOffsetParent:Fm,getElementRects:xw,getClientRects:cw,getDimensions:yw,getScale:Fr,isElement:Ct,isRTL:ww};function Bm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cw(e,t){let n=null,r;const o=Dt(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(l||t(),!g||!f)return;const C=Hi(p),v=Hi(o.clientWidth-(d+g)),w=Hi(o.clientHeight-(p+f)),m=Hi(d),y={rootMargin:-C+"px "+-v+"px "+-w+"px "+-m+"px",threshold:Qe(0,Ln(1,a))||1};let S=!0;function b(E){const k=E[0].intersectionRatio;if(k!==a){if(!S)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Bm(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return s(!0),i}function bw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=uc(e),d=o||i?[...u?oi(u):[],...oi(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const p=u&&l?Cw(u,n):null;let g=-1,f=null;s&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let C,v=a?ur(e):null;a&&w();function w(){const m=ur(e);v&&!Bm(v,m)&&n(),v=m,C=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(C)}}const Ew=Y1,kw=G1,Pw=V1,Tw=X1,jw=K1,ef=H1,Rw=q1,Nw=(e,t,n)=>{const r=new Map,o={platform:Sw,...n},i={...o.platform,_c:r};return U1(e,t,{...o,platform:i})};var Aw=typeof document<"u",Mw=function(){},ss=Aw?x.useLayoutEffect:Mw;function Is(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Is(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Is(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $m(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tf(e,t){const n=$m(e);return Math.round(t*n)/n}function Kl(e){const t=x.useRef(e);return ss(()=>{t.current=e}),t}function Ow(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=x.useState(r);Is(g,r)||f(r);const[C,v]=x.useState(null),[w,m]=x.useState(null),h=x.useCallback(T=>{T!==E.current&&(E.current=T,v(T))},[]),y=x.useCallback(T=>{T!==k.current&&(k.current=T,m(T))},[]),S=i||C,b=s||w,E=x.useRef(null),k=x.useRef(null),j=x.useRef(d),I=a!=null,M=Kl(a),B=Kl(o),z=Kl(u),K=x.useCallback(()=>{if(!E.current||!k.current)return;const T={placement:t,strategy:n,middleware:g};B.current&&(T.platform=B.current),Nw(E.current,k.current,T).then(R=>{const _={...R,isPositioned:z.current!==!1};O.current&&!Is(j.current,_)&&(j.current=_,yi.flushSync(()=>{p(_)}))})},[g,t,n,B,z]);ss(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const O=x.useRef(!1);ss(()=>(O.current=!0,()=>{O.current=!1}),[]),ss(()=>{if(S&&(E.current=S),b&&(k.current=b),S&&b){if(M.current)return M.current(S,b,K);K()}},[S,b,K,M,I]);const G=x.useMemo(()=>({reference:E,floating:k,setReference:h,setFloating:y}),[h,y]),$=x.useMemo(()=>({reference:S,floating:b}),[S,b]),U=x.useMemo(()=>{const T={position:n,left:0,top:0};if(!$.floating)return T;const R=tf($.floating,d.x),_=tf($.floating,d.y);return l?{...T,transform:"translate("+R+"px, "+_+"px)",...$m($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:_}},[n,l,$.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:K,refs:G,elements:$,floatingStyles:U}),[d,K,G,$,U])}const Iw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ef({element:r.current,padding:o}).fn(n):{}:r?ef({element:r,padding:o}).fn(n):{}}}},_w=(e,t)=>({...Ew(e),options:[e,t]}),Lw=(e,t)=>({...kw(e),options:[e,t]}),zw=(e,t)=>({...Rw(e),options:[e,t]}),Dw=(e,t)=>({...Pw(e),options:[e,t]}),Fw=(e,t)=>({...Tw(e),options:[e,t]}),Bw=(e,t)=>({...jw(e),options:[e,t]}),$w=(e,t)=>({...Iw(e),options:[e,t]});var Ww="Arrow",Wm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(He.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wm.displayName=Ww;var Uw=Wm;function Hw(e){const[t,n]=x.useState(void 0);return _n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Um="Popper",[Hm,Vm]=Zs(Um),[oC,Km]=Hm(Um),Qm="PopperAnchor",Ym=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Km(Qm,n),s=x.useRef(null),l=St(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(He.div,{...o,ref:l})});Ym.displayName=Qm;var dc="PopperContent",[Vw,Kw]=Hm(dc),Gm=x.forwardRef((e,t)=>{var J,pr,en,$n,tn,hr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:C,...v}=e,w=Km(dc,n),[m,h]=x.useState(null),y=St(t,nn=>h(nn)),[S,b]=x.useState(null),E=Hw(S),k=(E==null?void 0:E.width)??0,j=(E==null?void 0:E.height)??0,I=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(u)?u:[u],z=B.length>0,K={padding:M,boundary:B.filter(Yw),altBoundary:z},{refs:O,floatingStyles:G,placement:$,isPositioned:U,middlewareData:T}=Ow({strategy:"fixed",placement:I,whileElementsMounted:(...nn)=>bw(...nn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[_w({mainAxis:o+j,alignmentAxis:s}),a&&Lw({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?zw():void 0,...K}),a&&Dw({...K}),Fw({...K,apply:({elements:nn,rects:wi,availableWidth:cl,availableHeight:Si})=>{const{width:dl,height:po}=wi.reference,mr=nn.floating.style;mr.setProperty("--radix-popper-available-width",`${cl}px`),mr.setProperty("--radix-popper-available-height",`${Si}px`),mr.setProperty("--radix-popper-anchor-width",`${dl}px`),mr.setProperty("--radix-popper-anchor-height",`${po}px`)}}),S&&$w({element:S,padding:l}),Gw({arrowWidth:k,arrowHeight:j}),g&&Bw({strategy:"referenceHidden",...K})]}),[R,_]=Zm($),H=In(C);_n(()=>{U&&(H==null||H())},[U,H]);const D=(J=T.arrow)==null?void 0:J.x,Q=(pr=T.arrow)==null?void 0:pr.y,q=((en=T.arrow)==null?void 0:en.centerOffset)!==0,[he,Te]=x.useState();return _n(()=>{m&&Te(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[($n=T.transformOrigin)==null?void 0:$n.x,(tn=T.transformOrigin)==null?void 0:tn.y].join(" "),...((hr=T.hide)==null?void 0:hr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Vw,{scope:n,placedSide:R,onArrowChange:b,arrowX:D,arrowY:Q,shouldHideArrow:q,children:c.jsx(He.div,{"data-side":R,"data-align":_,...v,ref:y,style:{...v.style,animation:U?void 0:"none"}})})})});Gm.displayName=dc;var qm="PopperArrow",Qw={top:"bottom",right:"left",bottom:"top",left:"right"},Xm=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Kw(qm,r),s=Qw[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(Uw,{...o,ref:n,style:{...o.style,display:"block"}})})});Xm.displayName=qm;function Yw(e){return e!==null}var Gw=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=Zm(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let C="",v="";return u==="bottom"?(C=s?p:`${g}px`,v=`${-a}px`):u==="top"?(C=s?p:`${g}px`,v=`${r.floating.height+a}px`):u==="right"?(C=`${-a}px`,v=s?p:`${f}px`):u==="left"&&(C=`${r.floating.width+a}px`,v=s?p:`${f}px`),{data:{x:C,y:v}}}});function Zm(e){const[t,n="center"]=e.split("-");return[t,n]}var qw=Ym,Xw=Gm,Zw=Xm,[ol,iC]=Zs("Tooltip",[Vm]),fc=Vm(),Jm="TooltipProvider",Jw=700,nf="tooltip.open",[e2,eg]=ol(Jm),tg=e=>{const{__scopeTooltip:t,delayDuration:n=Jw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(e2,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};tg.displayName=Jm;var ng="Tooltip",[sC,il]=ol(ng),qa="TooltipTrigger",t2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=il(qa,n),i=eg(qa,n),s=fc(n),l=x.useRef(null),a=St(t,l,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(qw,{asChild:!0,...s,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});t2.displayName=qa;var n2="TooltipPortal",[lC,r2]=ol(n2,{forceMount:void 0}),ro="TooltipContent",rg=x.forwardRef((e,t)=>{const n=r2(ro,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=il(ro,e.__scopeTooltip);return c.jsx(Ju,{present:r||s.open,children:s.disableHoverableContent?c.jsx(og,{side:o,...i,ref:t}):c.jsx(o2,{side:o,...i,ref:t})})}),o2=x.forwardRef((e,t)=>{const n=il(ro,e.__scopeTooltip),r=eg(ro,e.__scopeTooltip),o=x.useRef(null),i=St(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{l(null),p(!1)},[p]),f=x.useCallback((C,v)=>{const w=C.currentTarget,m={x:C.clientX,y:C.clientY},h=u2(m,w.getBoundingClientRect()),y=c2(m,h),S=d2(v.getBoundingClientRect()),b=p2([...y,...S]);l(b),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(a&&d){const C=w=>f(w,d),v=w=>f(w,a);return a.addEventListener("pointerleave",C),d.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",v)}}},[a,d,f,g]),x.useEffect(()=>{if(s){const C=v=>{const w=v.target,m={x:v.clientX,y:v.clientY},h=(a==null?void 0:a.contains(w))||(d==null?void 0:d.contains(w)),y=!f2(m,s);h?g():y&&(g(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[a,d,s,u,g]),c.jsx(og,{...e,ref:i})}),[i2,s2]=ol(ng,{isInside:!1}),l2=m0("TooltipContent"),og=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=il(ro,n),u=fc(n),{onClose:d}=a;return x.useEffect(()=>(document.addEventListener(nf,d),()=>document.removeEventListener(nf,d)),[d]),x.useEffect(()=>{if(a.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),c.jsx(Zu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(Xw,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(l2,{children:r}),c.jsx(i2,{scope:n,isInside:!0,children:c.jsx(B0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});rg.displayName=ro;var ig="TooltipArrow",a2=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fc(n);return s2(ig,n).isInside?null:c.jsx(Zw,{...o,...r,ref:t})});a2.displayName=ig;function u2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function c2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function d2(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function f2(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function p2(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),h2(t)}function h2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var m2=tg,sg=rg;const g2=m2,y2=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(sg,{ref:r,sideOffset:t,className:fr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));y2.displayName=sg.displayName;var sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gn,mn,Br,wf,v2=(wf=class extends sl{constructor(){super();X(this,Gn);X(this,mn);X(this,Br);F(this,Br,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,mn)||this.setEventListener(P(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,mn))==null||t.call(this),F(this,mn,void 0))}setEventListener(t){var n;F(this,Br,t),(n=P(this,mn))==null||n.call(this),F(this,mn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Gn)!==t&&(F(this,Gn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Gn)=="boolean"?P(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,mn=new WeakMap,Br=new WeakMap,wf),lg=new v2,x2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gn,ru,Sf,w2=(Sf=class{constructor(){X(this,gn,x2);X(this,ru,!1)}setTimeoutProvider(e){F(this,gn,e)}setTimeout(e,t){return P(this,gn).setTimeout(e,t)}clearTimeout(e){P(this,gn).clearTimeout(e)}setInterval(e,t){return P(this,gn).setInterval(e,t)}clearInterval(e){P(this,gn).clearInterval(e)}},gn=new WeakMap,ru=new WeakMap,Sf),Xa=new w2;function S2(e){setTimeout(e,0)}var C2=typeof window>"u"||"Deno"in globalThis;function ht(){}function b2(e,t){return typeof e=="function"?e(t):e}function E2(e){return typeof e=="number"&&e>=0&&e!==1/0}function k2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Za(e,t){return typeof e=="function"?e(t):e}function P2(e,t){return typeof e=="function"?e(t):e}function rf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==pc(s,t.options))return!1}else if(!si(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function of(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ii(t.options.mutationKey)!==ii(i))return!1}else if(!si(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function pc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ii)(e)}function ii(e){return JSON.stringify(e,(t,n)=>Ja(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function si(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>si(e[n],t[n])):!1}var T2=Object.prototype.hasOwnProperty;function ag(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=sf(e)&&sf(t);if(!r&&!(Ja(e)&&Ja(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),l=s.length,a=r?new Array(l):{};let u=0;for(let d=0;d{Xa.setTimeout(t,e)})}function R2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ag(e,t):t}function N2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function A2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hc=Symbol();function ug(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function M2(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var cg=(()=>{let e=()=>C2;return{isServer(){return e()},setIsServer(t){e=t}}})();function O2(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var I2=S2;function _2(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=I2;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ie=_2(),$r,yn,Wr,Cf,L2=(Cf=class extends sl{constructor(){super();X(this,$r,!0);X(this,yn);X(this,Wr);F(this,Wr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,yn)||this.setEventListener(P(this,Wr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,yn))==null||t.call(this),F(this,yn,void 0))}setEventListener(t){var n;F(this,Wr,t),(n=P(this,yn))==null||n.call(this),F(this,yn,t(this.setOnline.bind(this)))}setOnline(t){P(this,$r)!==t&&(F(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,$r)}},$r=new WeakMap,yn=new WeakMap,Wr=new WeakMap,Cf),_s=new L2;function z2(e){return Math.min(1e3*2**e,3e4)}function dg(e){return(e??"online")==="online"?_s.isOnline():!0}var eu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fg(e){let t=!1,n=0,r;const o=O2(),i=()=>o.status!=="pending",s=v=>{var w;if(!i()){const m=new eu(v);g(m),(w=e.onCancel)==null||w.call(e,m)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>lg.isFocused()&&(e.networkMode==="always"||_s.isOnline())&&e.canRun(),d=()=>dg(e.networkMode)&&e.canRun(),p=v=>{i()||(r==null||r(),o.resolve(v))},g=v=>{i()||(r==null||r(),o.reject(v))},f=()=>new Promise(v=>{var w;r=m=>{(i()||u())&&v(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),C=()=>{if(i())return;let v;const w=n===0?e.initialPromise:void 0;try{v=w??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(p).catch(m=>{var E;if(i())return;const h=e.retry??(cg.isServer()?0:3),y=e.retryDelay??z2,S=typeof y=="function"?y(n,m):y,b=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?g(m):C()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?C():f().then(C),o)}}var qn,bf,pg=(bf=class{constructor(){X(this,qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E2(this.gcTime)&&F(this,qn,Xa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cg.isServer()?1/0:5*60*1e3))}clearGcTimeout(){P(this,qn)!==void 0&&(Xa.clearTimeout(P(this,qn)),F(this,qn,void 0))}},qn=new WeakMap,bf);function D2(e){return{onFetch:(t,n)=>{var d,p,g,f,C;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((C=t.state.data)==null?void 0:C.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const w=y=>{M2(y,()=>t.signal,()=>v=!0)},m=ug(t.options,t.fetchOptions),h=async(y,S,b)=>{if(v)return Promise.reject(t.signal.reason);if(S==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:S,direction:b?"backward":"forward",meta:t.options.meta};return w(B),B})(),j=await m(k),{maxPages:I}=t.options,M=b?A2:N2;return{pages:M(y.pages,j,I),pageParams:M(y.pageParams,S,I)}};if(o&&i.length){const y=o==="backward",S=y?F2:af,b={pages:i,pageParams:s},E=S(r,b);l=await h(b,E,y)}else{const y=e??i.length;do{const S=a===0?s[0]??r.initialPageParam:af(r,l);if(a>0&&S==null)break;l=await h(l,S),a++}while(a{var v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function af(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function F2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ur,Xn,Hr,tt,Zn,we,ui,Jn,Ke,hg,Bt,Ef,B2=(Ef=class extends pg{constructor(t){super();X(this,Ke);X(this,Ur);X(this,Xn);X(this,Hr);X(this,tt);X(this,Zn);X(this,we);X(this,ui);X(this,Jn);F(this,Jn,!1),F(this,ui,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,Zn,t.client),F(this,tt,P(this,Zn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,Xn,cf(this.options)),this.state=t.state??P(this,Xn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return P(this,Ur)}get promise(){var t;return(t=P(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...P(this,ui),...t},t!=null&&t._type&&F(this,Ur,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=cf(this.options);n.data!==void 0&&(this.setState(uf(n.data,n.dataUpdatedAt)),F(this,Xn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,tt).remove(this)}setData(t,n){const r=R2(this.state.data,t,this.options);return be(this,Ke,Bt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){be(this,Ke,Bt).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=P(this,we))==null?void 0:r.promise;return(o=P(this,we))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return P(this,Xn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>P2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Za(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!k2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,we)&&(P(this,Jn)||be(this,Ke,hg).call(this)?P(this,we).cancel({revert:!0}):P(this,we).cancelRetry()),this.scheduleGc()),P(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,Ke,Bt).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,p,g,f,C,v,w,m,h,y;if(this.state.fetchStatus!=="idle"&&((u=P(this,we))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,we))return P(this,we).continueRetry(),P(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(b=>b.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(F(this,Jn,!0),r.signal)})},i=()=>{const S=ug(this.options,n),E=(()=>{const k={client:P(this,Zn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return F(this,Jn,!1),this.options.persister?this.options.persister(S,E,this):S(E)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Zn),state:this.state,fetchFn:i};return o(S),S})(),a=P(this,Ur)==="infinite"?D2(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),F(this,Hr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&be(this,Ke,Bt).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),F(this,we,fg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof eu&&S.revert&&this.setState({...P(this,Hr),fetchStatus:"idle"}),r.abort()},onFail:(S,b)=>{be(this,Ke,Bt).call(this,{type:"failed",failureCount:S,error:b})},onPause:()=>{be(this,Ke,Bt).call(this,{type:"pause"})},onContinue:()=>{be(this,Ke,Bt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await P(this,we).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(f=(g=P(this,tt).config).onSuccess)==null||f.call(g,S,this),(v=(C=P(this,tt).config).onSettled)==null||v.call(C,S,this.state.error,this),S}catch(S){if(S instanceof eu){if(S.silent)return P(this,we).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw be(this,Ke,Bt).call(this,{type:"error",error:S}),(m=(w=P(this,tt).config).onError)==null||m.call(w,S,this),(y=(h=P(this,tt).config).onSettled)==null||y.call(h,this.state.data,S,this),S}finally{this.scheduleGc()}}},Ur=new WeakMap,Xn=new WeakMap,Hr=new WeakMap,tt=new WeakMap,Zn=new WeakMap,we=new WeakMap,ui=new WeakMap,Jn=new WeakMap,Ke=new WeakSet,hg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Bt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$2(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...uf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Hr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,tt).notify({query:this,type:"updated",action:t})})},Ef);function $2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function cf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ci,Rt,Ne,er,Nt,cn,kf,W2=(kf=class extends pg{constructor(t){super();X(this,Nt);X(this,ci);X(this,Rt);X(this,Ne);X(this,er);F(this,ci,t.client),this.mutationId=t.mutationId,F(this,Ne,t.mutationCache),F(this,Rt,[]),this.state=t.state||U2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Rt).includes(t)||(P(this,Rt).push(t),this.clearGcTimeout(),P(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Rt,P(this,Rt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Rt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ne).remove(this))}continue(){var t;return((t=P(this,er))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,a,u,d,p,g,f,C,v,w,m,h,y,S,b,E,k;const n=()=>{be(this,Nt,cn).call(this,{type:"continue"})},r={client:P(this,ci),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,er,fg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(j,I)=>{be(this,Nt,cn).call(this,{type:"failed",failureCount:j,error:I})},onPause:()=>{be(this,Nt,cn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ne).canRun(this)}));const o=this.state.status==="pending",i=!P(this,er).canStart();try{if(o)n();else{be(this,Nt,cn).call(this,{type:"pending",variables:t,isPaused:i}),P(this,Ne).config.onMutate&&await P(this,Ne).config.onMutate(t,this,r);const I=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t,r));I!==this.state.context&&be(this,Nt,cn).call(this,{type:"pending",context:I,variables:t,isPaused:i})}const j=await P(this,er).start();return await((u=(a=P(this,Ne).config).onSuccess)==null?void 0:u.call(a,j,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,j,t,this.state.context,r)),await((f=(g=P(this,Ne).config).onSettled)==null?void 0:f.call(g,j,null,this.state.variables,this.state.context,this,r)),await((v=(C=this.options).onSettled)==null?void 0:v.call(C,j,null,t,this.state.context,r)),be(this,Nt,cn).call(this,{type:"success",data:j}),j}catch(j){try{await((m=(w=P(this,Ne).config).onError)==null?void 0:m.call(w,j,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((y=(h=this.options).onError)==null?void 0:y.call(h,j,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((b=(S=P(this,Ne).config).onSettled)==null?void 0:b.call(S,void 0,j,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,j,t,this.state.context,r))}catch(I){Promise.reject(I)}throw be(this,Nt,cn).call(this,{type:"error",error:j}),j}finally{P(this,Ne).runNext(this)}}},ci=new WeakMap,Rt=new WeakMap,Ne=new WeakMap,er=new WeakMap,Nt=new WeakSet,cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ie.batch(()=>{P(this,Rt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ne).notify({mutation:this,type:"updated",action:t})})},kf);function U2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,mt,di,Pf,H2=(Pf=class extends sl{constructor(t={}){super();X(this,Ut);X(this,mt);X(this,di);this.config=t,F(this,Ut,new Set),F(this,mt,new Map),F(this,di,0)}build(t,n,r){const o=new W2({client:t,mutationCache:this,mutationId:++bi(this,di)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,Ut).add(t);const n=Vi(t);if(typeof n=="string"){const r=P(this,mt).get(n);r?r.push(t):P(this,mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Ut).delete(t)){const n=Vi(t);if(typeof n=="string"){const r=P(this,mt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Vi(t);if(typeof n=="string"){const r=P(this,mt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Vi(t);if(typeof n=="string"){const o=(r=P(this,mt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ie.batch(()=>{P(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Ut).clear(),P(this,mt).clear()})}getAll(){return Array.from(P(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>of(n,r))}findAll(t={}){return this.getAll().filter(n=>of(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ie.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},Ut=new WeakMap,mt=new WeakMap,di=new WeakMap,Pf);function Vi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var At,Tf,V2=(Tf=class extends sl{constructor(t={}){super();X(this,At);this.config=t,F(this,At,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??pc(o,n);let s=this.get(i);return s||(s=new B2({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,At).has(t.queryHash)||(P(this,At).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,At).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,At).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,At).get(t)}getAll(){return[...P(this,At).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>rf(t,r)):n}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},At=new WeakMap,Tf),de,vn,xn,Vr,Kr,wn,Qr,Yr,jf,K2=(jf=class{constructor(e={}){X(this,de);X(this,vn);X(this,xn);X(this,Vr);X(this,Kr);X(this,wn);X(this,Qr);X(this,Yr);F(this,de,e.queryCache||new V2),F(this,vn,e.mutationCache||new H2),F(this,xn,e.defaultOptions||{}),F(this,Vr,new Map),F(this,Kr,new Map),F(this,wn,0)}mount(){bi(this,wn)._++,P(this,wn)===1&&(F(this,Qr,lg.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),F(this,Yr,_s.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;bi(this,wn)._--,P(this,wn)===0&&((e=P(this,Qr))==null||e.call(this),F(this,Qr,void 0),(t=P(this,Yr))==null||t.call(this),F(this,Yr,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,vn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Za(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=b2(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>P(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);Ie.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return Ie.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ie.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return Ie.batch(()=>(P(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ie.batch(()=>P(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,de).build(this,t);return n.isStaleByTime(Za(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return _s.isOnline()?P(this,vn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,vn)}getDefaultOptions(){return P(this,xn)}setDefaultOptions(e){F(this,xn,e)}setQueryDefaults(e,t){P(this,Vr).set(ii(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Vr).values()],n={};return t.forEach(r=>{si(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Kr).set(ii(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Kr).values()],n={};return t.forEach(r=>{si(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,vn).clear()}},de=new WeakMap,vn=new WeakMap,xn=new WeakMap,Vr=new WeakMap,Kr=new WeakMap,wn=new WeakMap,Qr=new WeakMap,Yr=new WeakMap,jf),Q2=x.createContext(void 0),Y2=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Q2.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q2(){return Math.random().toString(36).substr(2,8)}function ff(e,t){return{usr:e.state,key:e.key,idx:t}}function tu(e,t,n,r){return n===void 0&&(n=null),li({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?co(t):t,{state:n,key:t&&t.key||r||q2()})}function gg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function co(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function X2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=bn.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(li({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){l=bn.Pop;let w=d(),m=w==null?null:w-u;u=w,a&&a({action:l,location:v.location,delta:m})}function g(w,m){l=bn.Push;let h=tu(v.location,w,m);u=d()+1;let y=ff(h,u),S=v.createHref(h);try{s.pushState(y,"",S)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign(S)}i&&a&&a({action:l,location:v.location,delta:1})}function f(w,m){l=bn.Replace;let h=tu(v.location,w,m);u=d();let y=ff(h,u),S=v.createHref(h);s.replaceState(y,"",S),i&&a&&a({action:l,location:v.location,delta:0})}function C(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:gg(w);return h=h.replace(/ $/,"%20"),xe(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(df,p),a=w,()=>{o.removeEventListener(df,p),a=null}},createHref(w){return t(o,w)},createURL:C,encodeLocation(w){let m=C(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(w){return s.go(w)}};return v}var pf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pf||(pf={}));function Z2(e,t,n){return n===void 0&&(n="/"),J2(e,t,n)}function J2(e,t,n,r){let o=typeof t=="string"?co(t):t,i=xg(o.pathname||"/",n);if(i==null)return null;let s=yg(e);eS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(xe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=rr([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(xe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:lS(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of vg(i.path))o(i,s,a)}),t}function vg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=vg(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function eS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tS=/^:[\w-]+$/,nS=3,rS=2,oS=1,iS=10,sS=-2,hf=e=>e==="*";function lS(e,t){let n=e.split("/"),r=n.length;return n.some(hf)&&(r+=sS),t&&(r+=rS),n.filter(o=>!hf(o)).reduce((o,i)=>o+(tS.test(i)?nS:i===""?oS:iS),r)}function aS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function uS(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:g,isOptional:f}=d;if(g==="*"){let v=l[p]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const C=l[p];return f&&!C?u[g]=void 0:u[g]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function dS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function fS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function xg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?co(e):e;return{pathname:n?n.startsWith("/")?n:hS(n,t):t,search:xS(r),hash:wS(o)}}function hS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ql(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gS(e,t){let n=mS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yS(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=co(e):(o=li({},e),xe(!o.pathname||!o.pathname.includes("?"),Ql("?","pathname","search",o)),xe(!o.pathname||!o.pathname.includes("#"),Ql("#","pathname","hash",o)),xe(!o.search||!o.search.includes("#"),Ql("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let a=pS(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const rr=e=>e.join("/").replace(/\/\/+/g,"/"),vS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wg=["post","put","patch","delete"];new Set(wg);const CS=["get",...wg];new Set(CS);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=yS(u,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:rr([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,s,i,e])}function PS(e,t){return TS(e,t)}function TS(e,t,n,r){ul()||xe(!1);let{navigator:o}=x.useContext(ll),{matches:i}=x.useContext(fo),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=gc(),d;if(t){var p;let w=typeof t=="string"?co(t):t;a==="/"||(p=w.pathname)!=null&&p.startsWith(a)||xe(!1),d=w}else d=u;let g=d.pathname||"/",f=g;if(a!=="/"){let w=a.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let C=Z2(e,{pathname:f}),v=MS(C&&C.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:rr([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:rr([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?x.createElement(al.Provider,{value:{location:ai({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:bn.Pop}},v):v}function jS(){let e=LS(),t=SS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const RS=x.createElement(jS,null);class NS extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(fo.Provider,{value:this.props.routeContext},x.createElement(Sg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AS(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(mc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(fo.Provider,{value:t},r)}function MS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||xe(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,g)=>{let f,C=!1,v=null,w=null;n&&(f=l&&p.route.id?l[p.route.id]:void 0,v=p.route.errorElement||RS,a&&(u<0&&g===0?(DS("route-fallback"),C=!0,w=null):u===g&&(C=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,g+1)),h=()=>{let y;return f?y=v:C?y=w:p.route.Component?y=x.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=d,x.createElement(AS,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(NS,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var bg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bg||{}),Eg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eg||{});function OS(e){let t=x.useContext(mc);return t||xe(!1),t}function IS(e){let t=x.useContext(bS);return t||xe(!1),t}function _S(e){let t=x.useContext(fo);return t||xe(!1),t}function kg(e){let t=_S(),n=t.matches[t.matches.length-1];return n.route.id||xe(!1),n.route.id}function LS(){var e;let t=x.useContext(Sg),n=IS(),r=kg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zS(){let{router:e}=OS(bg.UseNavigateStable),t=kg(Eg.UseNavigateStable),n=x.useRef(!1);return Cg(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ai({fromRouteId:t},i)))},[e,t])}const mf={};function DS(e,t,n){mf[e]||(mf[e]=!0)}function FS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ro(e){xe(!1)}function BS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=bn.Pop,navigator:i,static:s=!1,future:l}=e;ul()&&xe(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:s,future:ai({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=co(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:C="default"}=r,v=x.useMemo(()=>{let w=xg(d,a);return w==null?null:{location:{pathname:w,search:p,hash:g,state:f,key:C},navigationType:o}},[a,d,p,g,f,C,o]);return v==null?null:x.createElement(ll.Provider,{value:u},x.createElement(al.Provider,{children:n,value:v}))}function $S(e){let{children:t,location:n}=e;return PS(nu(t),n)}new Promise(()=>{});function nu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,nu(r.props.children,i));return}r.type!==Ro&&xe(!1),!r.props.index||!r.props.children||xe(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=nu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const WS="6";try{window.__reactRouterVersion=WS}catch{}const US="startTransition",gf=Bf[US];function HS(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=G2({window:o,v5Compat:!0}));let s=i.current,[l,a]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=x.useCallback(p=>{u&&gf?gf(()=>a(p)):a(p)},[a,u]);return x.useLayoutEffect(()=>s.listen(d),[s,d]),x.useEffect(()=>FS(r),[r]),x.createElement(BS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var yf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yf||(yf={}));var vf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vf||(vf={}));const VS=()=>{const e=ES();return x.useEffect(()=>{e("/resources/disclosures/privacy-policy/",{replace:!0})},[e]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-lg",style:{color:"hsl(210 20% 36%)"},children:"Redirecting to Privacy Policy…"})})})},KS=()=>{const[e,t]=x.useState(!1);return c.jsxs("header",{className:"sticky top-0 z-50 no-print",style:{background:"hsl(213 71% 10%)",borderBottom:"2px solid hsl(43 57% 52%)",boxShadow:"0 2px 16px rgba(0,0,0,0.25)"},children:[c.jsx("div",{style:{background:"hsl(213 71% 7%)",borderBottom:"1px solid rgba(198,161,66,0.25)",padding:"5px 24px",fontSize:"11px",color:"rgba(210,220,235,0.7)",fontFamily:"'Inter', sans-serif",letterSpacing:"0.03em"},children:c.jsxs("div",{style:{maxWidth:"1280px",margin:"0 auto",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c.jsx("span",{children:"Licensed by the Capital Markets Authority (CMA) of Kuwait  |  Regulated by the Central Bank of Kuwait (CBK)  |  Shari'a-Compliant"}),c.jsx("span",{className:"arabic",style:{fontSize:"11px",color:"rgba(210,220,235,0.6)"},children:"شركة ألمانزا للاستثمار – الكويت"})]})}),c.jsxs("div",{style:{maxWidth:"1280px",margin:"0 auto",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",height:"68px"},children:[c.jsxs("a",{href:"/",style:{textDecoration:"none",display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontWeight:800,fontSize:"20px",color:"#fff",letterSpacing:"-0.02em",lineHeight:1},children:"ALMANZA"}),c.jsx("span",{style:{fontFamily:"'Inter', sans-serif",fontWeight:400,fontSize:"10px",color:"hsl(43 57% 52%)",letterSpacing:"0.22em",textTransform:"uppercase"},children:"Investment Company KSCC"})]}),c.jsxs("nav",{className:"hidden md:flex",style:{gap:"32px",alignItems:"center"},children:[["About","Services","Resources","Investor Relations","Contact"].map(n=>c.jsx("a",{href:"#",style:{fontFamily:"'Inter', sans-serif",fontSize:"13.5px",fontWeight:500,color:"rgba(210,225,245,0.85)",letterSpacing:"0.02em",textDecoration:"none",padding:"4px 0",borderBottom:"1px solid transparent",transition:"color 0.2s, border-color 0.2s"},onMouseEnter:r=>{r.target.style.color="hsl(43 57% 52%)",r.target.style.borderBottomColor="hsl(43 57% 52%)"},onMouseLeave:r=>{r.target.style.color="rgba(210,225,245,0.85)",r.target.style.borderBottomColor="transparent"},children:n},n)),c.jsxs("button",{onClick:()=>window.print(),title:"Print / Export PDF",style:{display:"flex",alignItems:"center",gap:"6px",background:"rgba(198,161,66,0.12)",border:"1px solid rgba(198,161,66,0.4)",borderRadius:"4px",color:"hsl(43 57% 52%)",padding:"6px 14px",fontSize:"13px",fontWeight:500,cursor:"pointer",transition:"background 0.2s",fontFamily:"'Inter', sans-serif"},onMouseEnter:n=>{n.currentTarget.style.background="rgba(198,161,66,0.22)"},onMouseLeave:n=>{n.currentTarget.style.background="rgba(198,161,66,0.12)"},children:[c.jsx(Bd,{size:14}),"Print / PDF"]})]}),c.jsx("button",{className:"md:hidden",onClick:()=>t(!e),style:{background:"none",border:"none",color:"white",cursor:"pointer",padding:"8px"},"aria-label":"Toggle menu",children:e?c.jsx(wm,{size:24}):c.jsx(mx,{size:24})})]}),e&&c.jsxs("div",{style:{background:"hsl(213 71% 8%)",borderTop:"1px solid rgba(198,161,66,0.2)",padding:"16px 24px 20px"},children:[["About","Services","Resources","Investor Relations","Contact"].map(n=>c.jsx("a",{href:"#",style:{display:"block",fontFamily:"'Inter', sans-serif",fontSize:"15px",color:"rgba(210,225,245,0.85)",padding:"10px 0",borderBottom:"1px solid rgba(255,255,255,0.06)",textDecoration:"none"},children:n},n)),c.jsxs("button",{onClick:()=>window.print(),style:{marginTop:"12px",display:"flex",alignItems:"center",gap:"8px",background:"rgba(198,161,66,0.12)",border:"1px solid rgba(198,161,66,0.4)",borderRadius:"4px",color:"hsl(43 57% 52%)",padding:"10px 18px",fontSize:"14px",fontWeight:500,cursor:"pointer",fontFamily:"'Inter', sans-serif"},children:[c.jsx(Bd,{size:15}),"Print / Export PDF"]})]})]})},QS=["Almanza Real Estate Co. KSCC","Almanza Ventures Capital","Almanza Industrial Holdings","Almanza Asset Management"],YS=[{en:"Work & Spread Knowledge",ar:"العمل ونشر المعرفة"},{en:"Persevere",ar:"المثابرة"},{en:"Act with Integrity",ar:"النزاهة في العمل"},{en:"Maintain Ethics",ar:"الحفاظ على الأخلاق"},{en:"Invest in People",ar:"الاستثمار في الأفراد"}],GS=[{label:"Privacy Policy",href:"/resources/disclosures/privacy-policy/"},{label:"Terms of Use",href:"#"},{label:"Cookie Policy",href:"#"},{label:"Regulatory Disclosures",href:"#"},{label:"AML / KYC Policy",href:"#"}],qS=()=>c.jsxs("footer",{className:"no-print",style:{background:"hsl(213 71% 10%)",borderTop:"2px solid hsl(43 57% 52%)",fontFamily:"'Inter', sans-serif"},children:[c.jsx("div",{style:{maxWidth:"1280px",margin:"0 auto",padding:"56px 24px 40px"},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"48px 32px"},children:[c.jsxs("div",{children:[c.jsxs("div",{style:{marginBottom:"16px"},children:[c.jsx("span",{style:{fontWeight:800,fontSize:"22px",color:"#fff",letterSpacing:"-0.02em",display:"block"},children:"ALMANZA"}),c.jsx("span",{style:{fontWeight:400,fontSize:"10px",color:"hsl(43 57% 52%)",letterSpacing:"0.22em",textTransform:"uppercase"},children:"Investment Company KSCC"})]}),c.jsx("p",{style:{fontSize:"13px",color:"rgba(210,225,245,0.65)",lineHeight:1.75,marginBottom:"20px",maxWidth:"240px"},children:"Established 1998. A Kuwaiti Shareholding Company acquiring strategic investments in selective enterprises and industries, in accordance with Islamic Shari'a."}),c.jsx("p",{className:"arabic",style:{fontSize:"13px",color:"rgba(210,225,245,0.5)",lineHeight:1.75,marginBottom:"20px"},children:"شركة ألمانزا للاستثمار – تأسست عام ١٩٩٨"}),c.jsx("div",{style:{display:"flex",gap:"12px"},children:[fx,yx,dx].map((e,t)=>c.jsx("a",{href:"#","aria-label":"Social link",style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:"1px solid rgba(198,161,66,0.25)",color:"rgba(210,225,245,0.65)",transition:"border-color 0.2s, color 0.2s",textDecoration:"none"},onMouseEnter:n=>{n.currentTarget.style.borderColor="hsl(43 57% 52%)",n.currentTarget.style.color="hsl(43 57% 52%)"},onMouseLeave:n=>{n.currentTarget.style.borderColor="rgba(198,161,66,0.25)",n.currentTarget.style.color="rgba(210,225,245,0.65)"},children:c.jsx(e,{size:16})},t))})]}),c.jsxs("div",{children:[c.jsx("h4",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",marginBottom:"20px"},children:"Core Values"}),c.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:YS.map(e=>c.jsxs("li",{style:{marginBottom:"12px",borderBottom:"1px solid rgba(255,255,255,0.05)",paddingBottom:"12px"},children:[c.jsx("span",{style:{display:"block",fontSize:"13.5px",fontWeight:500,color:"rgba(210,225,245,0.9)"},children:e.en}),c.jsx("span",{className:"arabic",style:{fontSize:"12px",color:"rgba(210,225,245,0.45)"},children:e.ar})]},e.en))})]}),c.jsxs("div",{children:[c.jsx("h4",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",marginBottom:"20px"},children:"Group Companies"}),c.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:"24px"},children:QS.map(e=>c.jsx("li",{style:{marginBottom:"10px"},children:c.jsx("a",{href:"#",style:{fontSize:"13.5px",color:"rgba(210,225,245,0.75)",textDecoration:"none",transition:"color 0.2s"},onMouseEnter:t=>{t.target.style.color="hsl(43 57% 52%)"},onMouseLeave:t=>{t.target.style.color="rgba(210,225,245,0.75)"},children:e})},e))}),c.jsx("h4",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",marginBottom:"16px"},children:"Legal & Disclosures"}),c.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:GS.map(e=>c.jsx("li",{style:{marginBottom:"8px"},children:c.jsx("a",{href:e.href,style:{fontSize:"13px",color:"rgba(210,225,245,0.6)",textDecoration:"none",transition:"color 0.2s"},onMouseEnter:t=>{t.target.style.color="hsl(43 57% 52%)"},onMouseLeave:t=>{t.target.style.color="rgba(210,225,245,0.6)"},children:e.label})},e.label))})]}),c.jsxs("div",{children:[c.jsx("h4",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",marginBottom:"20px"},children:"Contact"}),c.jsxs("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:"24px"},children:[c.jsxs("li",{style:{display:"flex",gap:"10px",alignItems:"flex-start",marginBottom:"14px"},children:[c.jsx(hx,{size:15,style:{color:"hsl(43 57% 52%)",marginTop:"3px",flexShrink:0}}),c.jsxs("span",{style:{fontSize:"13px",color:"rgba(210,225,245,0.7)",lineHeight:1.6},children:["Qibla Q2 Building 114 Office 27 Ground Floor, P.O. Box 200, Safat 13002, Kuwait City",c.jsx("br",{}),"Kuwait City, State of Kuwait"]})]}),c.jsxs("li",{style:{display:"flex",gap:"10px",alignItems:"center",marginBottom:"10px"},children:[c.jsx(gx,{size:15,style:{color:"hsl(43 57% 52%)",flexShrink:0}}),c.jsx("a",{href:"tel:+96522001234",style:{fontSize:"13px",color:"rgba(210,225,245,0.7)",textDecoration:"none"},children:"+965 2200 1234"})]}),c.jsxs("li",{style:{display:"flex",gap:"10px",alignItems:"center",marginBottom:"10px"},children:[c.jsx(px,{size:15,style:{color:"hsl(43 57% 52%)",flexShrink:0}}),c.jsx("a",{href:"mailto:info@almanzainvestment.com",style:{fontSize:"13px",color:"rgba(210,225,245,0.7)",textDecoration:"none"},children:"info@almanzainvestment.com"})]})]}),c.jsx("h4",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",marginBottom:"14px"},children:"Regulatory Status"}),["Capital Markets Authority (CMA) Kuwait","Central Bank of Kuwait (CBK)","Ministry of Commerce & Industry","Shari'a Supervisory Board"].map(e=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[c.jsx("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:"hsl(43 57% 52%)",flexShrink:0,display:"inline-block"}}),c.jsx("span",{style:{fontSize:"12px",color:"rgba(210,225,245,0.6)"},children:e})]},e))]})]})}),c.jsx("div",{style:{borderTop:"1px solid rgba(198,161,66,0.15)",padding:"20px 24px",background:"hsl(213 71% 7%)"},children:c.jsxs("div",{style:{maxWidth:"1280px",margin:"0 auto"},children:[c.jsx("p",{style:{fontSize:"11.5px",color:"rgba(210,225,245,0.45)",lineHeight:1.75,marginBottom:"8px",textAlign:"center"},children:"© 2026 Almanza Investment Company KSCC. All rights reserved. Almanza Investment Company KSCC is a Kuwaiti Shareholding Company, licensed by the Capital Markets Authority (CMA) of Kuwait (Law No. 7/2010) and regulated by the Central Bank of Kuwait (CBK) where applicable, in accordance with the Kuwait Ministry of Commerce and Industry. All investments are Shari'a-compliant and governed by the provisions of Islamic Shari'a as determined by the Company's Shari'a Supervisory Board. Past performance is not indicative of future results. This website does not constitute an offer to sell or a solicitation to buy any security."}),c.jsx("p",{className:"arabic",style:{fontSize:"11px",color:"rgba(210,225,245,0.3)",textAlign:"center",lineHeight:1.7},children:"جميع الحقوق محفوظة لشركة ألمانزا للاستثمار – شركة مساهمة كويتية مرخصة من هيئة أسواق المال ومنظمة من بنك الكويت المركزي وفق أحكام الشريعة الإسلامية."})]})})]}),XS=()=>c.jsxs("section",{style:{background:"linear-gradient(160deg, hsl(213 71% 10%) 0%, hsl(213 60% 14%) 60%, hsl(204 69% 18%) 100%)",padding:"64px 24px 56px",position:"relative",overflow:"hidden"},children:[c.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:"repeating-linear-gradient(90deg, rgba(198,161,66,0.04) 0px, rgba(198,161,66,0.04) 1px, transparent 1px, transparent 60px), repeating-linear-gradient(0deg, rgba(198,161,66,0.04) 0px, rgba(198,161,66,0.04) 1px, transparent 1px, transparent 60px)",pointerEvents:"none"}}),c.jsxs("div",{style:{maxWidth:"1280px",margin:"0 auto",position:"relative",zIndex:1},children:[c.jsx("nav",{"aria-label":"Breadcrumb",style:{marginBottom:"28px"},children:c.jsx("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"4px",listStyle:"none",padding:0,margin:0},children:[{label:"Home",href:"/"},{label:"Resources",href:"#"},{label:"Disclosures",href:"#"},{label:"Privacy Policy",href:null}].map((e,t,n)=>c.jsxs("li",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[e.href?c.jsx("a",{href:e.href,style:{fontSize:"12.5px",color:"rgba(210,225,245,0.55)",textDecoration:"none",fontFamily:"'Inter', sans-serif",transition:"color 0.2s"},onMouseEnter:r=>{r.target.style.color="hsl(43 57% 52%)"},onMouseLeave:r=>{r.target.style.color="rgba(210,225,245,0.55)"},children:e.label}):c.jsx("span",{style:{fontSize:"12.5px",color:"hsl(43 57% 52%)",fontWeight:500,fontFamily:"'Inter', sans-serif"},children:e.label}),tc.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{style:{fontSize:"10px",fontWeight:700,color:"hsl(43 57% 52%)",letterSpacing:"0.18em",textTransform:"uppercase",fontFamily:"'Inter', sans-serif"},children:e.label}),c.jsx("span",{style:{fontSize:"14px",color:"rgba(210,225,245,0.85)",fontFamily:"'Inter', sans-serif"},children:e.value})]},e.label))}),c.jsx("div",{style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(198,161,66,0.25)",borderLeft:"3px solid hsl(43 57% 52%)",borderRadius:"6px",padding:"20px 24px",maxWidth:"900px"},children:c.jsxs("p",{style:{fontFamily:"'Inter', sans-serif",fontSize:"13.5px",color:"rgba(210,225,245,0.8)",lineHeight:1.8,margin:0},children:[c.jsx("strong",{style:{color:"#fff"},children:"Almanza Investment Company KSCC"})," is a Kuwaiti Shareholding Company, incorporated in the State of Kuwait in 1998. Licensed by the"," ",c.jsx("strong",{style:{color:"hsl(43 57% 62%)"},children:"Capital Markets Authority (CMA) of Kuwait"})," (Law No. 7 of 2010 and its amendments) and regulated by the"," ",c.jsx("strong",{style:{color:"hsl(43 57% 62%)"},children:"Central Bank of Kuwait (CBK)"})," where applicable, in accordance with the Kuwait Ministry of Commerce and Industry. This Privacy Policy complies with"," ",c.jsx("strong",{style:{color:"hsl(43 57% 62%)"},children:"Kuwait Law No. 20 of 2014"})," on the Protection of Privacy and relevant CMA/CBK regulatory directives."]})})]})]}),Pt=({children:e,tinted:t=!1,id:n})=>c.jsxs("section",{id:n,className:"print-section",style:{background:t?"hsl(210 60% 98%)":"hsl(0 0% 100%)",padding:"56px 24px",borderBottom:"1px solid hsl(210 30% 91%)",scrollMarginTop:"90px"},children:[c.jsx("div",{style:{maxWidth:"960px",margin:"0 auto"},children:e}),c.jsx("style",{children:` .body-text { font-family: 'Inter', sans-serif; font-size: 15px; color: hsl(210 20% 36%); line-height: 1.8; margin-bottom: 16px; } .arabic-block { margin-top: 20px; padding: 14px 18px; background: hsl(43 57% 97%); border-right: 3px solid hsl(43 57% 52%); border-radius: 4px; } .compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; } .compliance-card { background: hsl(0 0% 100%); border: 1px solid hsl(210 30% 88%); border-radius: 6px; padding: 16px 18px; transition: border-color 0.2s; } .compliance-card:hover { border-color: hsl(43 57% 52%); } .data-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 13.5px; border: 1px solid hsl(210 30% 88%); border-radius: 8px; overflow: hidden; min-width: 600px; } .data-table th { background: hsl(213 71% 15%); color: hsl(43 57% 62%); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px; text-align: left; white-space: nowrap; } .data-table td { padding: 13px 16px; color: hsl(210 20% 36%); border-bottom: 1px solid hsl(210 30% 91%); vertical-align: top; line-height: 1.6; } .data-table tr:last-child td { border-bottom: none; } .purpose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; } .purpose-card { background: hsl(0 0% 100%); border: 1px solid hsl(210 30% 88%); border-radius: 6px; padding: 18px; border-top: 3px solid hsl(213 71% 15%); transition: border-top-color 0.2s; } .purpose-card:hover { border-top-color: hsl(43 57% 52%); } .security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; } .security-card { background: hsl(0 0% 100%); border: 1px solid hsl(210 30% 88%); border-radius: 6px; padding: 16px; transition: border-color 0.2s; } .security-card:hover { border-color: hsl(43 57% 52%); } .rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; } .right-card { background: hsl(0 0% 100%); border: 1px solid hsl(210 30% 88%); border-radius: 6px; padding: 18px; border-left: 3px solid hsl(204 69% 37%); transition: border-left-color 0.2s; } .right-card:hover { border-left-color: hsl(43 57% 52%); } .contact-card { background: hsl(0 0% 100%); border: 1px solid hsl(210 30% 88%); border-radius: 8px; padding: 24px; } @media (max-width: 640px) { .compliance-grid, .purpose-grid, .security-grid, .rights-grid { grid-template-columns: 1fr; } } `})]}),ZS=()=>c.jsxs("div",{children:[c.jsxs(Pt,{tinted:!1,id:"section-1",children:[c.jsx(Tt,{number:"1",en:"Introduction & Scope",ar:"المقدمة والنطاق"}),c.jsxs("p",{className:"body-text",children:[c.jsx("strong",{children:"Almanza Investment Company KSCC"}),' ("Almanza," "we," "us," "our") is a Kuwaiti Shareholding Company established in 1998. The main focus of the Company is acquiring strategic investments in selective enterprises, industries, and investment vehicles seeking growth and capital appreciation, all in accordance with the provisions of the ',c.jsx("strong",{children:"Islamic Shari'a"})," and in accordance with the Regulations and instructions of the Kuwait Capital Market Authority, Central Bank of Kuwait, and the Kuwait Ministry of Commerce and Industry."]}),c.jsx("p",{className:"body-text",children:"We are committed to protecting the privacy, confidentiality, and security of your personal information. This Privacy Policy sets out the basis on which any personal information we collect from you, or that you provide to us, will be processed by us. It applies to all personal information processed by Almanza, including information collected through our website, client portals, email communications, written correspondence, and in-person interactions."}),c.jsxs("p",{className:"body-text",children:["This Policy applies to: ",c.jsx("strong",{children:"clients"}),", ",c.jsx("strong",{children:"prospective clients"}),", ",c.jsx("strong",{children:"investors"}),", ",c.jsx("strong",{children:"counterparties"}),", ",c.jsx("strong",{children:"business partners"}),", ",c.jsx("strong",{children:"employees"}),", ",c.jsx("strong",{children:"third-party service providers"}),", and ",c.jsx("strong",{children:"website visitors"}),". By engaging with Almanza or using our services, you acknowledge that your personal data will be processed in accordance with this Policy."]}),c.jsx("div",{className:"arabic-block",children:c.jsx("p",{style:{fontFamily:"'Tajawal', sans-serif",fontSize:"14px",color:"hsl(210 20% 36%)",lineHeight:1.9,textAlign:"right",direction:"rtl",margin:0},children:"تلتزم شركة ألمانزا للاستثمار – شركة مساهمة كويتية – بحماية خصوصية وسرية معلوماتك الشخصية وفق أحكام الشريعة الإسلامية وتعليمات هيئة أسواق المال وبنك الكويت المركزي ووزارة التجارة والصناعة."})})]}),c.jsxs(Pt,{tinted:!0,id:"section-2",children:[c.jsx(Tt,{number:"2",en:"Legal Basis & Regulatory Compliance",ar:"الأساس القانوني والامتثال التنظيمي"}),c.jsx("p",{className:"body-text",children:"Almanza processes personal information only when we have a lawful basis to do so. We operate in full compliance with the following regulatory frameworks:"}),c.jsx("div",{className:"compliance-grid",children:[{title:"Kuwait Law No. 20 of 2014",desc:"The Protection of Privacy – primary data protection legislation governing the collection, processing, storage, and disclosure of personal information in the State of Kuwait."},{title:"CMA Kuwait – Law No. 7 of 2010",desc:"Capital Markets Authority regulations and executive bylaws governing investment firms, confidentiality obligations, and client data protection requirements."},{title:"Central Bank of Kuwait (CBK)",desc:"Directives on data protection, banking secrecy, anti-money laundering (AML), and know-your-customer (KYC) compliance obligations."},{title:"Ministry of Commerce & Industry",desc:"Corporate governance requirements, commercial registration obligations, and business conduct regulations applicable to Kuwaiti Shareholding Companies."},{title:"Shari'a Supervisory Board",desc:"All operations and data processing activities are subject to review and approval by Al Amal's independent Shari'a Supervisory Board."},{title:"International Standards (GDPR Principles)",desc:"Where applicable to cross-border data flows or international counterparties, Almanza applies internationally recognised data protection standards including GDPR principles."}].map(e=>c.jsx("div",{className:"compliance-card",children:c.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px"},children:[c.jsx("span",{style:{width:"8px",height:"8px",borderRadius:"50%",background:"hsl(43 57% 52%)",marginTop:"7px",flexShrink:0,display:"inline-block"}}),c.jsxs("div",{children:[c.jsx("strong",{style:{display:"block",fontSize:"14px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif",marginBottom:"4px"},children:e.title}),c.jsx("span",{style:{fontSize:"13.5px",color:"hsl(210 20% 36%)",lineHeight:1.7,fontFamily:"'Inter', sans-serif"},children:e.desc})]})]})},e.title))}),c.jsxs("p",{className:"body-text",style:{marginTop:"24px"},children:["Our lawful bases for processing include: ",c.jsx("strong",{children:"your explicit consent"}),"; ",c.jsx("strong",{children:"performance of a contract"})," with you; compliance with a ",c.jsx("strong",{children:"legal or regulatory obligation"}),"; protection of ",c.jsx("strong",{children:"vital interests"}),"; and our ",c.jsx("strong",{children:"legitimate interests"})," as an investment firm, where such interests are not overridden by your rights."]})]}),c.jsxs(Pt,{tinted:!1,id:"section-3",children:[c.jsx(Tt,{number:"3",en:"Information We Collect",ar:"المعلومات التي نجمعها"}),c.jsx("p",{className:"body-text",children:"We collect and process the following categories of personal information, as necessary for the lawful purposes described in this Policy:"}),c.jsx("div",{style:{overflowX:"auto",marginTop:"24px"},children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Category"}),c.jsx("th",{children:"Examples of Data"}),c.jsx("th",{children:"Source"}),c.jsx("th",{children:"Lawful Basis"})]})}),c.jsx("tbody",{children:[{cat:"Identification Data",ar:"بيانات الهوية",examples:"Full name, passport / Civil ID number, date of birth, nationality, photograph",source:"Directly from you",basis:"Legal obligation (KYC/AML), Contract"},{cat:"Contact Data",ar:"بيانات الاتصال",examples:"Residential address, email address, telephone number, emergency contact",source:"Directly from you",basis:"Contract, Legitimate interest"},{cat:"Financial Data",ar:"البيانات المالية",examples:"Bank account details, income & net worth, source of wealth & funds, credit information",source:"Directly from you; third-party verification",basis:"Legal obligation (CMA/CBK), Contract"},{cat:"Investment Data",ar:"بيانات الاستثمار",examples:"Portfolio holdings, transaction history, risk tolerance profile, investment objectives, Shari'a preferences",source:"Directly from you; generated by us",basis:"Contract, Legal obligation"},{cat:"Technical Data",ar:"البيانات التقنية",examples:"IP address, browser type & version, device identifiers, cookies, session data, log files",source:"Automatically collected",basis:"Legitimate interest, Consent"},{cat:"Communication Data",ar:"بيانات الاتصالات",examples:"Email correspondence, recorded telephone calls, meeting notes, written submissions",source:"Interactions with us",basis:"Legal obligation (CMA record-keeping), Contract"},{cat:"Due Diligence Data",ar:"بيانات العناية الواجبة",examples:"Politically exposed person (PEP) status, sanctions screening results, adverse media",source:"Third-party screening databases",basis:"Legal obligation (AML/KYC)"}].map((e,t)=>c.jsxs("tr",{style:{background:t%2===0?"transparent":"hsl(210 60% 98%)"},children:[c.jsxs("td",{children:[c.jsx("strong",{style:{display:"block",color:"hsl(213 71% 15%)",fontSize:"13.5px"},children:e.cat}),c.jsx("span",{className:"arabic",style:{fontSize:"12px",color:"hsl(210 20% 36%)"},children:e.ar})]}),c.jsx("td",{style:{fontSize:"13px"},children:e.examples}),c.jsx("td",{style:{fontSize:"13px",whiteSpace:"nowrap"},children:e.source}),c.jsx("td",{style:{fontSize:"13px"},children:e.basis})]},e.cat))})]})}),c.jsxs("p",{className:"body-text",style:{marginTop:"20px"},children:["We do not intentionally collect ",c.jsx("strong",{children:"special category data"})," (i.e., data revealing racial or ethnic origin, political opinions, religious beliefs, health information, or biometric data) unless strictly required by applicable law or regulation, and with your explicit consent where required."]})]}),c.jsxs(Pt,{tinted:!0,id:"section-4",children:[c.jsx(Tt,{number:"4",en:"How We Use Your Information",ar:"كيف نستخدم معلوماتك"}),c.jsx("p",{className:"body-text",children:"We use your personal information solely for the following specified, explicit, and legitimate purposes. Your data will not be used in any manner incompatible with the purposes listed below:"}),c.jsx("div",{className:"purpose-grid",children:[{title:"Client Onboarding & KYC",desc:"To verify your identity, conduct Anti-Money Laundering (AML) and Combating the Financing of Terrorism (CFT) checks, assess your suitability as an investor, and comply with CMA/CBK onboarding requirements."},{title:"Portfolio & Investment Management",desc:"To manage your investment portfolio, execute securities transactions, provide investment advisory services, generate performance reports, and fulfil our contractual obligations to you."},{title:"Risk Assessment & Management",desc:"To assess creditworthiness, monitor portfolio exposures, conduct stress testing, manage counterparty risk, and ensure compliance with investment mandate constraints."},{title:"Legal & Regulatory Compliance",desc:"To comply with applicable Kuwaiti law, CMA directives, CBK requirements, Ministry of Commerce obligations, Shari'a board requirements, and international regulatory standards."},{title:"Client Communication & Service Delivery",desc:"To respond to your inquiries, send periodic investment reports and statements, notify you of material events, and provide ongoing client service."},{title:"Financial & Accounting Records",desc:"To maintain accurate books of account, prepare financial statements, facilitate audits, and comply with statutory record-keeping obligations."},{title:"Fraud Prevention & Security",desc:"To detect, investigate, and prevent fraudulent activity, money laundering, insider dealing, market abuse, and other financial crime."},{title:"Website Analytics & Improvement",desc:"To analyse website usage patterns, improve our digital services, enhance user experience, and optimise our online presence."}].map(e=>c.jsxs("div",{className:"purpose-card",children:[c.jsx("strong",{style:{display:"block",fontSize:"14px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif",marginBottom:"6px"},children:e.title}),c.jsx("span",{style:{fontSize:"13px",color:"hsl(210 20% 36%)",lineHeight:1.7,fontFamily:"'Inter', sans-serif"},children:e.desc})]},e.title))})]}),c.jsxs(Pt,{tinted:!1,id:"section-5",children:[c.jsx(Tt,{number:"5",en:"Data Sharing & Disclosure",ar:"مشاركة البيانات والإفصاح"}),c.jsx("div",{style:{background:"hsl(210 60% 97%)",border:"1px solid hsl(210 30% 88%)",borderLeft:"3px solid hsl(43 57% 52%)",borderRadius:"6px",padding:"16px 20px",marginBottom:"24px",fontFamily:"'Inter', sans-serif",fontSize:"14px",color:"hsl(213 71% 15%)",fontWeight:600},children:"Almanza does not sell, rent, or trade your personal information to third parties for commercial purposes. Data is shared only as described below."}),[{party:"Authorised Service Providers",desc:"Technology providers (cloud hosting, cybersecurity), external auditors, legal counsel, custodian banks, and fund administrators who process data solely on our behalf under strict contractual data processing agreements."},{party:"Regulatory & Governmental Authorities",desc:"Capital Markets Authority (CMA), Central Bank of Kuwait (CBK), Ministry of Commerce & Industry, Kuwait Financial Intelligence Unit (KFIU), and other competent authorities – where required by law, court order, or regulatory directive."},{party:"Shari'a Supervisory Board",desc:"Anonymised or aggregated data may be reviewed by the Company's independent Shari'a Supervisory Board for Shari'a compliance review purposes."},{party:"Group Companies & Subsidiaries",desc:"Data may be shared within the Almanza Group (subsidiaries and affiliates) for consolidated risk management, group-level reporting, and joint client service delivery, subject to equivalent data protection standards."},{party:"Business Partners & Co-Investors",desc:"With your explicit prior consent, and only where necessary for a specific transaction, investment vehicle, or partnership arrangement."},{party:"Professional Advisors",desc:"Law firms, accounting firms, and valuation specialists acting on your behalf or ours, subject to professional confidentiality obligations."}].map((e,t)=>c.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"flex-start",padding:"18px 0",borderBottom:t<5?"1px solid hsl(210 30% 91%)":"none"},children:[c.jsx("span",{style:{minWidth:"32px",height:"32px",borderRadius:"50%",background:"hsl(213 71% 15%)",color:"hsl(43 57% 52%)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"13px",fontWeight:700,fontFamily:"'Inter', sans-serif",flexShrink:0,marginTop:"2px"},children:t+1}),c.jsxs("div",{children:[c.jsx("strong",{style:{display:"block",fontSize:"14px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif",marginBottom:"4px"},children:e.party}),c.jsx("span",{style:{fontSize:"13.5px",color:"hsl(210 20% 36%)",lineHeight:1.75,fontFamily:"'Inter', sans-serif"},children:e.desc})]})]},e.party)),c.jsx("p",{className:"body-text",style:{marginTop:"20px"},children:"All third-party recipients are contractually obligated to protect your data, process it only for the purposes specified, and comply with applicable Kuwaiti law and international data protection standards."})]}),c.jsxs(Pt,{tinted:!0,id:"section-6",children:[c.jsx(Tt,{number:"6",en:"Data Retention & Security",ar:"الاحتفاظ بالبيانات وأمنها"}),c.jsx("p",{className:"body-text",children:"We retain personal information only for as long as necessary to fulfil the purposes described in this Policy, including compliance with legal, regulatory, accounting, and reporting requirements. Our retention schedule is governed by CMA and CBK directives:"}),c.jsx("div",{style:{overflowX:"auto",marginBottom:"32px"},children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Data Category"}),c.jsx("th",{children:"Retention Period"}),c.jsx("th",{children:"Regulatory Basis"})]})}),c.jsx("tbody",{children:[["Client relationship & account records","10 years after account closure","CMA Directive / Kuwait Law No. 7/2010"],["Transaction & trading records","7 years from transaction date","CMA Directive"],["AML / KYC due diligence files","10 years after relationship end","CBK AML/CFT Regulations"],["Email & written correspondence","5 years","CMA Record-Keeping Requirements"],["Telephone call recordings","5 years","CMA Directive"],["Website technical data (cookies, logs)","Up to 24 months","Legitimate interest"],["HR & employment records","7 years after employment ends","Kuwait Labour Law"]].map(([e,t,n],r)=>c.jsxs("tr",{style:{background:r%2===0?"transparent":"hsl(210 60% 98%)"},children:[c.jsx("td",{style:{fontSize:"13.5px",fontWeight:500},children:e}),c.jsx("td",{style:{fontSize:"13.5px",fontWeight:600,color:"hsl(213 71% 15%)"},children:t}),c.jsx("td",{style:{fontSize:"13px",color:"hsl(210 20% 36%)"},children:n})]},e))})]})}),c.jsx("h4",{style:{fontFamily:"'Inter', sans-serif",fontWeight:700,fontSize:"16px",color:"hsl(213 71% 15%)",marginBottom:"16px"},children:"Security Measures"}),c.jsx("p",{className:"body-text",children:"We implement comprehensive technical and organisational security measures to protect personal data against unauthorised access, disclosure, alteration, or destruction:"}),c.jsx("div",{className:"security-grid",children:[{icon:"🔒",title:"Encryption",desc:"AES-256 encryption for data at rest and TLS 1.3 for data in transit."},{icon:"🛡️",title:"Access Controls",desc:"Role-based access control (RBAC) with multi-factor authentication (MFA) for all systems."},{icon:"🔍",title:"Security Audits",desc:"Annual penetration testing, quarterly vulnerability assessments, and real-time SIEM monitoring."},{icon:"📋",title:"Staff Training",desc:"Mandatory annual data protection and information security training for all personnel."},{icon:"🏢",title:"Physical Security",desc:"Restricted access to offices and data centres, CCTV surveillance, and visitor management protocols."},{icon:"🔄",title:"Incident Response",desc:"Documented incident response plan with defined escalation procedures and regulatory notification timelines."}].map(e=>c.jsxs("div",{className:"security-card",children:[c.jsx("span",{style:{fontSize:"22px",display:"block",marginBottom:"8px"},children:e.icon}),c.jsx("strong",{style:{display:"block",fontSize:"13.5px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif",marginBottom:"4px"},children:e.title}),c.jsx("span",{style:{fontSize:"12.5px",color:"hsl(210 20% 36%)",lineHeight:1.65,fontFamily:"'Inter', sans-serif"},children:e.desc})]},e.title))})]}),c.jsxs(Pt,{tinted:!1,id:"section-7",children:[c.jsx(Tt,{number:"7",en:"Your Rights",ar:"حقوقك"}),c.jsx("p",{className:"body-text",children:"Under Kuwait Law No. 20 of 2014, CMA regulations, and applicable international standards, you have the following rights with respect to your personal information. Please note that certain rights may be subject to legal or regulatory limitations:"}),c.jsx("div",{className:"rights-grid",children:[{right:"Right of Access",ar:"حق الوصول",desc:"You have the right to request a copy of the personal information we hold about you and information about how we process it."},{right:"Right to Rectification",ar:"حق التصحيح",desc:"You have the right to request correction of inaccurate or incomplete personal information. We will respond within 30 calendar days."},{right:"Right to Erasure",ar:"حق المحو",desc:"You may request deletion of your personal information, subject to our legal retention obligations under CMA/CBK regulations and Kuwaiti law."},{right:"Right to Restrict Processing",ar:"حق تقييد المعالجة",desc:"You may request that we restrict the processing of your data in certain circumstances, such as while we verify the accuracy of data you have disputed."},{right:"Right to Object",ar:"حق الاعتراض",desc:"You may object to processing based on legitimate interests. We will cease processing unless we can demonstrate compelling legitimate grounds that override your interests."},{right:"Right to Data Portability",ar:"حق نقل البيانات",desc:"Where processing is based on consent or contract, you may request a copy of your data in a structured, commonly used, machine-readable format."},{right:"Right to Withdraw Consent",ar:"حق سحب الموافقة",desc:"Where processing is based on your consent, you may withdraw consent at any time. This will not affect the lawfulness of processing before withdrawal."},{right:"Right to Lodge a Complaint",ar:"حق تقديم شكوى",desc:"You have the right to lodge a complaint with the Capital Markets Authority (CMA), Central Bank of Kuwait (CBK), or Ministry of Commerce & Industry of Kuwait."}].map(e=>c.jsxs("div",{className:"right-card",children:[c.jsxs("div",{style:{marginBottom:"8px"},children:[c.jsx("strong",{style:{display:"block",fontSize:"14px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif"},children:e.right}),c.jsx("span",{className:"arabic",style:{fontSize:"12px",color:"hsl(43 57% 48%)",fontFamily:"'Tajawal', sans-serif"},children:e.ar})]}),c.jsx("p",{style:{fontSize:"13px",color:"hsl(210 20% 36%)",lineHeight:1.7,margin:0,fontFamily:"'Inter', sans-serif"},children:e.desc})]},e.right))}),c.jsxs("div",{style:{marginTop:"28px",background:"hsl(210 60% 97%)",border:"1px solid hsl(210 30% 88%)",borderLeft:"3px solid hsl(204 69% 37%)",borderRadius:"6px",padding:"16px 20px",fontFamily:"'Inter', sans-serif",fontSize:"13.5px",color:"hsl(210 20% 36%)",lineHeight:1.75},children:["To exercise any of the above rights, please contact our Privacy Officer (see Section 9). We will respond within ",c.jsx("strong",{children:"30 calendar days"}),". We may request proof of identity before processing your request. There is no charge for exercising your rights unless requests are manifestly unfounded, repetitive, or excessive."]})]}),c.jsxs(Pt,{tinted:!0,id:"section-8",children:[c.jsx(Tt,{number:"8",en:"Cookies & Tracking Technologies",ar:"ملفات تعريف الارتباط وتقنيات التتبع"}),c.jsx("p",{className:"body-text",children:"Our website uses cookies and similar tracking technologies to enhance your experience, analyse traffic patterns, ensure security, and improve our digital services. The following categories of cookies are used:"}),c.jsx("div",{style:{overflowX:"auto"},children:c.jsxs("table",{className:"data-table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Cookie Type"}),c.jsx("th",{children:"Purpose"}),c.jsx("th",{children:"Duration"}),c.jsx("th",{children:"Consent Required"})]})}),c.jsx("tbody",{children:[["Strictly Necessary","Session management, security, load balancing. Cannot be disabled.","Session","No (essential)"],["Functional","Remembering your preferences, language settings, and accessibility choices.","Up to 12 months","Yes"],["Analytics & Performance","Anonymised traffic analysis, page performance monitoring (e.g., Google Analytics).","Up to 24 months","Yes"],["Security & Fraud Prevention","Bot detection, fraud signals, authentication integrity.","Session / 30 days","No (legitimate interest)"]].map(([e,t,n,r],o)=>c.jsxs("tr",{style:{background:o%2===0?"transparent":"hsl(210 60% 98%)"},children:[c.jsx("td",{style:{fontSize:"13.5px",fontWeight:600,color:"hsl(213 71% 15%)",whiteSpace:"nowrap"},children:e}),c.jsx("td",{style:{fontSize:"13px"},children:t}),c.jsx("td",{style:{fontSize:"13px",whiteSpace:"nowrap"},children:n}),c.jsx("td",{style:{fontSize:"13px"},children:r})]},e))})]})}),c.jsxs("p",{className:"body-text",style:{marginTop:"20px"},children:["You can manage or withdraw your cookie consent at any time through your browser settings. Disabling certain cookies may affect the functionality of our website. For comprehensive information, please refer to our"," ",c.jsx("a",{href:"#",style:{color:"hsl(204 69% 37%)",fontWeight:500},children:"Cookie Policy"}),"."]})]}),c.jsxs(Pt,{tinted:!1,id:"section-9",children:[c.jsx(Tt,{number:"9",en:"Contact Information – Privacy Officer",ar:"معلومات الاتصال – مسؤول الخصوصية"}),c.jsx("p",{className:"body-text",children:"For any privacy-related enquiries, to exercise your data subject rights, to report a data protection concern, or to obtain further information about our privacy practices, please contact our designated Privacy Officer:"}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"24px",marginTop:"24px"},children:[c.jsxs("div",{className:"contact-card",children:[c.jsx("h4",{style:{fontFamily:"'Inter', sans-serif",fontWeight:700,fontSize:"15px",color:"hsl(213 71% 15%)",marginBottom:"16px",borderBottom:"1px solid hsl(210 30% 88%)",paddingBottom:"12px"},children:"Privacy Officer"}),[{label:"Organisation",value:"Almanza Investment Company KSCC"},{label:"Address",value:"Qibla Q2 Building 114 Office 27 Ground Floor, P.O. Box 200, Safat 13002, Kuwait City, Kuwait City, State of Kuwait, P.O. Box XXXXX, Safat 13001"},{label:"Email",value:"privacy@almanzainvestment.com",href:"mailto:privacy@almanzainvestment.com"},{label:"Telephone",value:"+965 2200 1234",href:"tel:+96522001234"},{label:"Working Hours",value:"Sunday – Thursday, 8:00 AM – 4:00 PM (AST, UTC+3)"}].map(e=>c.jsxs("div",{style:{marginBottom:"12px",display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{style:{fontSize:"11px",fontWeight:700,color:"hsl(43 57% 45%)",letterSpacing:"0.1em",textTransform:"uppercase",fontFamily:"'Inter', sans-serif"},children:e.label}),e.href?c.jsx("a",{href:e.href,style:{fontSize:"13.5px",color:"hsl(204 69% 37%)",fontFamily:"'Inter', sans-serif",textDecoration:"none"},children:e.value}):c.jsx("span",{style:{fontSize:"13.5px",color:"hsl(210 37% 17%)",fontFamily:"'Inter', sans-serif",lineHeight:1.6},children:e.value})]},e.label))]}),c.jsxs("div",{className:"contact-card",children:[c.jsx("h4",{style:{fontFamily:"'Inter', sans-serif",fontWeight:700,fontSize:"15px",color:"hsl(213 71% 15%)",marginBottom:"16px",borderBottom:"1px solid hsl(210 30% 88%)",paddingBottom:"12px"},children:"Regulatory Complaint Contacts"}),[{org:"Capital Markets Authority (CMA)",ar:"هيئة أسواق المال",detail:"www.cma.gov.kw | P.O. Box 22077, Safat 13081, Kuwait"},{org:"Central Bank of Kuwait (CBK)",ar:"بنك الكويت المركزي",detail:"www.cbk.gov.kw | P.O. Box 526, Safat 13006, Kuwait"},{org:"Ministry of Commerce & Industry",ar:"وزارة التجارة والصناعة",detail:"www.moci.gov.kw | Kuwait City, State of Kuwait"}].map(e=>c.jsxs("div",{style:{marginBottom:"16px",padding:"12px",background:"hsl(210 60% 98%)",borderRadius:"6px",border:"1px solid hsl(210 30% 91%)"},children:[c.jsx("strong",{style:{display:"block",fontSize:"13.5px",color:"hsl(213 71% 15%)",fontFamily:"'Inter', sans-serif"},children:e.org}),c.jsx("span",{className:"arabic",style:{fontSize:"12px",color:"hsl(210 20% 36%)",fontFamily:"'Tajawal', sans-serif"},children:e.ar}),c.jsx("span",{style:{display:"block",fontSize:"12.5px",color:"hsl(210 20% 36%)",fontFamily:"'Inter', sans-serif",marginTop:"4px"},children:e.detail})]},e.org))]})]})]}),c.jsxs(Pt,{tinted:!0,id:"section-10",children:[c.jsx(Tt,{number:"10",en:"Amendments & Governing Law",ar:"التعديلات والقانون الحاكم"}),c.jsxs("p",{className:"body-text",children:["Almanza Investment Company KSCC reserves the right to amend this Privacy Policy at any time to reflect changes in applicable law, regulatory requirements, our business operations, or our privacy practices. Material amendments will be communicated to clients via email or posted on our website with at least ",c.jsx("strong",{children:"30 days' notice"})," prior to taking effect. The continued use of our services following such notice constitutes acceptance of the amended Policy."]}),c.jsxs("p",{className:"body-text",children:["The most current version of this Policy will always be available at"," ",c.jsx("a",{href:"/resources/disclosures/privacy-policy/",style:{color:"hsl(204 69% 37%)",fontWeight:500},children:"almanzainvestment.com/resources/disclosures/privacy-policy/"}),"."]}),c.jsxs("p",{className:"body-text",children:["This Privacy Policy is governed by and construed in accordance with the laws of the ",c.jsx("strong",{children:"State of Kuwait"}),". Any disputes arising in connection with this Policy shall be subject to the exclusive jurisdiction of the competent courts of Kuwait, and/or the Capital Markets Authority dispute resolution mechanisms."]}),c.jsxs("div",{style:{marginTop:"28px",background:"hsl(213 71% 10%)",borderRadius:"8px",padding:"24px 28px",borderLeft:"3px solid hsl(43 57% 52%)"},children:[c.jsxs("p",{style:{fontFamily:"'Inter', sans-serif",fontSize:"13px",color:"rgba(210,225,245,0.8)",lineHeight:1.8,margin:"0 0 8px"},children:[c.jsx("strong",{style:{color:"#fff"},children:"Almanza Investment Company KSCC"})," is a Kuwaiti Shareholding Company, licensed by the Capital Markets Authority (CMA) of Kuwait (Law No. 7 of 2010) and regulated by the Central Bank of Kuwait (CBK) where applicable. All operations and investment activities are Shari'a-compliant, governed by the Company's independent Shari'a Supervisory Board. Past performance is not indicative of future results. This document does not constitute financial, legal, or investment advice."]}),c.jsx("p",{className:"arabic",style:{fontFamily:"'Tajawal', sans-serif",fontSize:"12.5px",color:"rgba(210,225,245,0.5)",lineHeight:1.8,margin:0,textAlign:"right",direction:"rtl"},children:"شركة ألمانزا للاستثمار – شركة مساهمة كويتية مرخصة من هيئة أسواق المال ومنظمة من بنك الكويت المركزي وفق أحكام الشريعة الإسلامية."})]}),c.jsxs("div",{style:{marginTop:"40px"},children:[c.jsx("h4",{style:{fontFamily:"'Inter', sans-serif",fontWeight:700,fontSize:"15px",color:"hsl(213 71% 15%)",marginBottom:"16px"},children:"Quick Navigation"}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"8px"},children:[{num:"1",label:"Introduction & Scope"},{num:"2",label:"Legal Basis & Compliance"},{num:"3",label:"Information We Collect"},{num:"4",label:"How We Use Your Information"},{num:"5",label:"Data Sharing & Disclosure"},{num:"6",label:"Data Retention & Security"},{num:"7",label:"Your Rights"},{num:"8",label:"Cookies & Tracking"},{num:"9",label:"Contact Information"},{num:"10",label:"Amendments & Governing Law"}].map(e=>c.jsxs("a",{href:`#section-${e.num}`,style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",background:"hsl(210 60% 98%)",border:"1px solid hsl(210 30% 91%)",borderRadius:"6px",textDecoration:"none",fontFamily:"'Inter', sans-serif",fontSize:"13px",color:"hsl(210 20% 36%)",transition:"border-color 0.2s, color 0.2s"},onMouseEnter:t=>{t.currentTarget.style.borderColor="hsl(43 57% 52%)",t.currentTarget.style.color="hsl(213 71% 15%)"},onMouseLeave:t=>{t.currentTarget.style.borderColor="hsl(210 30% 91%)",t.currentTarget.style.color="hsl(210 20% 36%)"},children:[c.jsx("span",{style:{width:"24px",height:"24px",borderRadius:"4px",background:"hsl(213 71% 15%)",color:"hsl(43 57% 52%)",fontSize:"11px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.num}),e.label]},e.num))})]})]})]}),Tt=({number:e,en:t,ar:n})=>c.jsx("div",{style:{marginBottom:"28px",paddingBottom:"16px",borderBottom:"1px solid hsl(210 30% 88%)"},children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"14px",flexWrap:"wrap"},children:[c.jsx("span",{style:{width:"36px",height:"36px",borderRadius:"6px",background:"hsl(213 71% 15%)",color:"hsl(43 57% 52%)",fontFamily:"'Inter', sans-serif",fontWeight:800,fontSize:"15px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e}),c.jsxs("div",{children:[c.jsx("h2",{style:{fontFamily:"'Inter', sans-serif",fontWeight:700,fontSize:"clamp(18px, 2.5vw, 22px)",color:"hsl(213 71% 15%)",margin:0,lineHeight:1.2},children:t}),c.jsx("span",{className:"arabic",style:{fontFamily:"'Tajawal', sans-serif",fontSize:"15px",color:"hsl(43 57% 48%)",fontWeight:500},children:n})]})]})}),xf=()=>c.jsxs("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column",background:"hsl(0 0% 100%)"},children:[c.jsx(KS,{}),c.jsxs("main",{style:{flex:1},children:[c.jsx(XS,{}),c.jsx(ZS,{})]}),c.jsx(qS,{})]}),JS=()=>{const e=gc();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},eC=new K2,tC=()=>c.jsx(Y2,{client:eC,children:c.jsxs(g2,{children:[c.jsx(Jx,{}),c.jsx(A1,{}),c.jsx(HS,{children:c.jsxs($S,{children:[c.jsx(Ro,{path:"/",element:c.jsx(VS,{})}),c.jsx(Ro,{path:"/resources/disclosures/privacy-policy/",element:c.jsx(xf,{})}),c.jsx(Ro,{path:"/resources/disclosures/privacy-policy",element:c.jsx(xf,{})}),c.jsx(Ro,{path:"*",element:c.jsx(JS,{})})]})})]})});Hh(document.getElementById("root")).render(c.jsx(tC,{}));